Inheritance (Quiz) Flashcards

(20 cards)

1
Q

Denoted by #, serves as an intermediary between two other types of access modifiers

A

Protected

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

It is the method that instantiates objects of another prewritten class

A

Constructor

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

Also means information hiding, the process of hiding the details of class members in one container

A

Encapsulation

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

An access modifier that allows access to all objects

A

Public

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

Class extends a class means that the parent class serves as basis for the

A

Child

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

An object taking different forms is known as

A

Polymorphism

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

Attributes shall be owned by the class who created it only, so the modifier _______ is used

A

Private

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

Most class methods are

A

Public

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

The ________ operator creates an object of the class type

A

New

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

The class used in implementing multiple inheritances

A

Interface

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

It is the method that established an object

A

Constructor

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

The _____ also refers to get methods

A

Accessor

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

The set methods are also known as _________

A

Mutator

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

A concept of OOP that allows one class to share members of another class

A

Inheritance

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

The class’ ____ can be overloaded using zero or several paremeters

A

Constructor

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

Default _____ is created by Java automatically, unless explicitly defined

17
Q

The ____ methods doesn’t contain any parameters in class

18
Q

Arguments are usually sent to ____ methods in a class

19
Q

_____ references is passed on to any object’s non-static class methods; opposite of “super”

20
Q

_____ is a library of classes