+ 4
why not create the object of abstract class.
Question:
4 Respuestas
+ 11
Then it's not abstract anymore.
+ 11
That is what makes it an abstract class: you cannot create objects of it. If you could the abstract class wouldn't be abstract anymore.
You can extend an abstract class. This might help you to learn more:
https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html
+ 3
mean?
0
It's for the same reason that you can't create object from interfaces. Abstract methods will have some abstract methods without an implementation, so you can't use them, otherwise your code wouldn't know what to do with it since it doesn't have a code te execute.