Why do we need abstract method?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the Red Cross, Lives in Geneva, Switzerland.
An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods. The abstract methods merely define a contract that derived classes must implement.
2023-06-14 06:18:37
评论(499)
Helpful(122)
Helpful
Helpful(2)

Benjamin Lee
QuesHub.com delivers expert answers and knowledge to you.
An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods. The abstract methods merely define a contract that derived classes must implement.