Question OOP-ABS-0024
EasyWhat is an abstract method?
- A.
A private method
- B.
A method that returns nothing
- C.
Show answer and explanation
Answer: D
In Java: abstract double area(); in C++: virtual double area() = 0;
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Abstraction and Interfaces question
What is an abstract method?
A private method
A method that returns nothing
Answer: D
In Java: abstract double area(); in C++: virtual double area() = 0;
A method with an empty body that does nothing
A method declared without a body, which subclasses must implement