M6 Flashcards

1
Q

is to make sure that “sensitive” data is hidden from

users.

A

Encapsulation,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

returns the variable value

A

get method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

sets the value.

A

set method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The technique of deriving new class definitions from an existing class definition.

A

Inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

is the class from which another class inherits properties. This is a class that is on top of a hierarchy.

A

Superclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

Subclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

subclasses are derived from a single super class. The derived class inherits the data members and methods of the superclass

A

single inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

subclasses are derived from more than one superclass. The derived class inherits the data members and methods its superclasses.

A

multiple inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

does java support multiple inheritance

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
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
A

this –

How well did you know this?
1
Not at all
2
3
4
5
Perfectly