Can we define abstract method in non abstract class?

Charlotte Scott | 2023-06-09 06:42:30 | page views:1153
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Clara Price

Studied at McGill University, Lives in Montreal, Canada
Declaring a class abstract only means that you don't allow it to be instantiated on its own. Declaring a method abstract means that sub classes have to provide an implementation for that method. The two are separate concepts, but obviously you can't have an abstract method in a non-abstract class.
2023-06-18 06:42:30

Julian Cook

QuesHub.com delivers expert answers and knowledge to you.
Declaring a class abstract only means that you don't allow it to be instantiated on its own. Declaring a method abstract means that sub classes have to provide an implementation for that method. The two are separate concepts, but obviously you can't have an abstract method in a non-abstract class.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4