How to execute an abstract method in an abstract class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to execute an abstract method in an abstract class?

Without creating an instance, how can I execute methods. even I inherit that abstract class and tried to execute that method from derived class. so tell me how to execute..?

19th Sep 2017, 2:16 AM
Empiyar
Empiyar - avatar
2 Answers
+ 2
The abstract method must be implemented in a derived class and an instance of that class must be created to use this method.
19th Sep 2017, 4:23 AM
ChaoticDawg
ChaoticDawg - avatar
0
can you please give some example?
19th Sep 2017, 4:31 AM
Empiyar
Empiyar - avatar