Module 4 Flashcards

1
Q

The process where one class acquires the properties (methods and fields) of another.

A

Inheritance

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

Categories of Inheritance :

A
  • Superclass (Parent)
  • Subclass (Child)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

is the keyword used to inherit the properties of a class.

A

Extends

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • It is used to differentiate the members of superclass from the members of subclass, if they have same names.
  • It is used to invoke the superclass constructor
    from subclass.
A

The super keyword

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

This keyword checks whether an object is an instance of a specific class or an
interface.

A

The instanceof keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • This keyword is used with classes to inherit the properties of an interface.
  • Interfaces can never be extended by a class.
A

The implements keyword

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

is a completely “abstract class” that is used to group related methods with empty
bodies.

A

Interface

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

Types of Inheritance :

A
  • Single Inheritance
  • Multi Level Inheritance
  • Hierarchical Inheritance
  • Multiple Inheritance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

means to override the functionality of
an existing method.

A

Overriding

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