+ 1

What is abstract class?

9th Aug 2016, 4:45 PM
RINO
2 Antworten
+ 2
you can have methods defind but without content. If you extend it later you need to define it there.
9th Aug 2016, 5:34 PM
Eric Zeus
Eric Zeus - avatar
+ 1
abstract class means which contains partial implementation for methods. abstract class A { abstract void m1(); void m2() { sop("m2 method"); } } conclusion: due to partial implementation next level child classes has to implement those methods by extending abstract class. if a class is declared as abstract then you are not able to create object for that class either directly or indirectly.
24th Aug 2016, 4:03 AM
Sarath chalapaka
Sarath chalapaka - avatar