Which of these is not a correct statement?
a) Every class containing abstract method must be declared abstract
b) Abstract class defines only the structure of the class not its implementation
c) Abstract class can be initiated by new operator
d) Abstract class can be inherited
Answers
Answered by
5
Answer:
hey is this mcqs or only sentences
Explanation:
i think d one is the answer
Answered by
1
Answer:
c) Abstract class can be initiated by new operator
Explanation:
Abstract class cannot be directly initiated with new operator as it does not contain any definition of implementation so it's not possible to create an abstract object.
Abstract class is declared by using abstract keyword. It contains both abstract as well as non-abstract methods. It is designed to be specifically used as a base class and should contain at least one pure virtual function.
#SPJ3
Similar questions