Can we create instance for Abstract class?

Answer Posted / rajesh parab

you can create at least in java 5.
YourAbstractClass obj= new YourAbstractClass (){}

try this.

but if you have abstrace method in it then you can not
create.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between private, protected, and public in C#?

552


What are floating point numbers?

485


What are assemblies?

539


Is int a class in c#?

497


What is c-sharp (c#)?

525






Can I fly with a loop recorder?

474


How many bytes is an int?

491


What do you mean by object pooling?

519


Can I call a virtual method from a constructor/destructor?

476


Distinguish between finally and finalize blocks?

509


What is args c#?

531


What is variable in c#?

508


How many aware interfaces are there?

480


What is nameof c#?

481


what is collections in .net? why we use?

1683