Abstract class and interface | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Abstract class and interface

Can an abstract class implement an interface? If yes can a child of abstract class have a child that is not abstract?

23rd Jan 2017, 12:53 AM
Satish Kumar Singh
Satish Kumar Singh - avatar
1 Answer
+ 1
Yes, abstract class can implement an interface. It doesn't even have to declare all the methods of interface, however, they will have to be declared in derived classes. " If yes can a child of abstract class have a child that is not abstract? " Yes, it can.
23rd Jan 2017, 3:01 AM
Heroes Killer
Heroes Killer - avatar