Can you please explain how to use an abstract class because i cannot initialize it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you please explain how to use an abstract class because i cannot initialize it.

2nd Jun 2017, 4:29 AM
DoubleVermine
DoubleVermine - avatar
3 Answers
+ 1
You can't initialize an abstract class, because they have no implementation. Abstract classes are basically an outline of what a child class must contain. Think Interface, which is really just a special type of abstract class. https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html
2nd Jun 2017, 4:54 AM
ChaoticDawg
ChaoticDawg - avatar
0
Yes but i want you to give me an example of an already made abstract class not one that is custom made. please
2nd Jun 2017, 4:59 AM
DoubleVermine
DoubleVermine - avatar
2nd Jun 2017, 5:11 AM
ChaoticDawg
ChaoticDawg - avatar