M6 Flashcards
is to make sure that “sensitive” data is hidden from
users.
Encapsulation,
returns the variable value
get method
sets the value.
set method
The technique of deriving new class definitions from an existing class definition.
Inheritance
is the class from which another class inherits properties. This is a class that is on top of a hierarchy.
Superclass
is a class that inherits all the non-private attributes and methods, except constructors from a superclass. This class has the ability to override methods of the superclass.
Subclass
subclasses are derived from a single super class. The derived class inherits the data members and methods of the superclass
single inheritance
subclasses are derived from more than one superclass. The derived class inherits the data members and methods its superclasses.
multiple inheritance
does java support multiple inheritance
no
contains a reference to the current object being constructed. It represents an instance of the class in which it appears. It can be used to access class variables and methods
this –