Search:

Type: Posts; User: prasanna1157

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    1,411

    Re: Inheritance - Object class

    Thank you.
  2. Replies
    8
    Views
    1,411

    Re: Inheritance - Object class

    Thank you for persisting with me. I've copied here the text I don't understand.

    "Dynamic method dispatch is the mechanism
    by which a call to an overridden method is resolved at run time, rather...
  3. Replies
    8
    Views
    1,411

    Re: Inheritance - Object class

    Thank you for the response. This is very helpful. I get the point about the class being generic. I think I didn't word the 2nd part of my previous question properly.

    When we use a reference...
  4. Replies
    8
    Views
    1,411

    Re: Inheritance - Object class

    ok, thank you. I get the point now, but I am confused as to what exactly happens when we do this (Object o = new Rectangle()). What does the program understand when we say this? And, what advantage...
  5. Replies
    8
    Views
    1,411

    Inheritance - Object class

    Hello,

    The following code doesn't compile because it says "method area()" not found when called with the object reference "o". If every class in Java is a subclass of the Object class, why is this...
Results 1 to 5 of 5