Programming - Abstract Classes
You Are Here :: Home > JAVA > Abstract Classes - General Questions
7. |
________________ is a keyword to define that method an abstract method.
|
A. |
abstract |
B.
|
this |
C.
|
super
|
D.
|
get
|
|
Answer: Option A
Explanation:
abstract is a keyword to define that method an abstract method. |
|
8. |
___________________ refers to the ability to make a class abstract in OOP.
|
A. |
Abstraction |
B.
|
Encapsulation |
C.
|
Inheritance
|
D.
|
Polymorphism
|
|
Answer: Option A
Explanation:
Abstraction refers to the ability to make a class abstract in OOP. |
|
9. |
An _____________ class is one that cannot be instantiated.
|
A. |
Super |
B.
|
Child |
C.
|
Abstract
|
D.
|
Static
|
|
Answer: Option A
Explanation:
An abstract class is one that cannot be instantiated. |
|
10. |
The ______________________ keyword to declare a class abstract.
|
A. |
abstract |
B.
|
this |
C.
|
super
|
D.
|
get
|
|
Answer: Option A
Explanation:
the abstract keyword to declare a class abstract. |
|
11. |
An _______________________ methods consist of a method signature, but no method body.
|
A. |
Abstract |
B.
|
Static |
C.
|
Non-Static
|
D.
|
Explicit
|
|
Answer: Option A
Explanation:
An abstract methods consist of a method signature, but no method body. |
|
12. |
For design purpose, a class can be declared abstract even if it does not contain any __________________ methods
|
A. |
Abstract |
B.
|
Static |
C.
|
Non-Static
|
D.
|
Explicit
|
|
Answer: Option A
Explanation:
For design purpose, a class can be declared abstract even if it does not contain any abstract methods |
|
« prev
next »