Introduction Flashcards
Give all the ways a java object may be accessed !
a java object can be accessed using a reference variable of its
own class, of its super class, of an abstract super class or
of an interface that the class the object belongs to implements
either directly or through a superclass
Give a characteristic of assigning an object to a super type !
when assigning an object to refernce variable of the same
type as the super class of the class that object belongs to,
an explicit cast is not required
Give a characteristic related to reference types that point to the same object in the context of polymorphism !
When an instance of an object is assigned to a reference type, only methods and variables available to that reference type can be called using that reference type even though the object may contain other members in memory that are not accessible to that reference type