...
Question 7038 – OOPS
March 16, 2024
Question 4692 – Square-of-opposition
March 16, 2024
Question 7038 – OOPS
March 16, 2024
Question 4692 – Square-of-opposition
March 16, 2024

Question 6690 – OOPS

Which of the following statement(s) with regard to an abstract class in JAVA is/are TRUE ?
I. An abstract class is one that is not used to create objects.
II. An abstract class is designed only to act as a base class to be inherited by other classes.

Correct Answer: D

Question 123 Explanation: 
Statement-I and II are TRUE
A class which is declared as abstract is known as an abstract class. It can have abstract and non-abstract methods. It needs to be extended and its method implemented. It cannot be instantiated.
Rules:
1. An abstract class must be declared with an abstract keyword.
2. It can have abstract and non-abstract methods.
3. It cannot be instantiated.
4. It can have constructors and static methods also.
5. It can have final methods which will force the subclass not to change the body of the method.
A
Only I
B
Only II
C
Neither I nor II
D
Both I and II
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!