New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to create objects for abstract class in java?
1 Answer
+ 3
The only way is to extend the abstract class to another class and create an object from the subclass, for example...
abstract class A {}
class B extends A {}
A a = new B();