Search:

Type: Posts; User: JonLane

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    1,464

    Re: Inheritance question

    (you should probably use examples that compile by the way :D )

    Okay, so specifically you are using the concept called Polymorphism. "A superclass reference variable can reference objects of a...
  2. Replies
    2
    Views
    1,464

    Re: Inheritance question

    The Object you are making is an Animal Object. By having Cat extend Animal you can store a Cat inside an Animal object if you choose.
    When you made a new Cat object it should over ride all same...
Results 1 to 2 of 2