98.2k views
1 vote
Which one of the following is not true?

(a) A class containing abstract methods is called an abstract class.
(b) Abstract methods should be implemented in the derived class.
(c) An abstract class cannot have non-abstract methods.
(d) A class must be qualified as 'abstract' class, if it contains one abstract method.
(e) None of the above.

User Kwalkertcu
by
8.1k points

1 Answer

3 votes

Final answer:

An abstract class can have non-abstract methods.

Step-by-step explanation:

The correct statement in the given options is (c) An abstract class cannot have non-abstract methods. This statement is not true because an abstract class can indeed have both abstract and non-abstract methods. An abstract class is a class that contains at least one abstract method, but it can also contain non-abstract methods. The purpose of an abstract class is to provide a template or blueprint for its derived classes, which are required to implement the abstract methods.

User Sunil Sharma
by
8.3k points

No related questions found