QuesHub > 抽象 > 方法 > 子类 > ASK DETAIL

Why do we need abstract method?

Harper Adams | 2023-06-09 06:18:37 | page views:1341
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Cameron Hall

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

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.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4