Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Polymorphism and encapsulation questions (teaching myself OOP through reading about Java)

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Polymorphism and encapsulation questions (teaching myself OOP through reading about Java)

    1. In Java, can you use polymorphism without the keyword extends?

    2. In Java, is an encapsulated entity necessarily an object?

    3. In Java can you use polymorphism with functions that require the same number of arguments?

    4.a. Is it true that the three pillars of object-oriented programming are encapsulation, inheritance and polymorphism? 4.b. If so, how much overlap is there among these three concepts?
    I don't think you could use polymorphism without inheritance. 4.c. Right?

    5. If I have a class that includes a function and there is data manipulation with the function returning data, did I use encapsulation?


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Polymorphism and encapsulation questions (teaching myself OOP through reading about Java)

    We won't do your homework for you.

Similar Threads

  1. Teaching myself Java – how to pass on an object to an event listener?
    By evert67 in forum Object Oriented Programming
    Replies: 11
    Last Post: January 9th, 2018, 08:03 PM
  2. Help with Encapsulation and Value Methods! Please and Thanks!
    By nickjesus3 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 10th, 2012, 01:31 AM
  3. Just Teaching Myself Java--Trivial Problem
    By hroseman in forum What's Wrong With My Code?
    Replies: 6
    Last Post: May 13th, 2012, 06:07 PM
  4. Help TEACHING Java
    By ducky123 in forum The Cafe
    Replies: 5
    Last Post: August 3rd, 2011, 01:25 AM
  5. Doubt in Encapsulation concept
    By nareshn in forum Object Oriented Programming
    Replies: 1
    Last Post: January 19th, 2011, 02:20 AM