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 c sharp used for?

661


What is command object in c#?

696


How to get the sum of last 3 items in a list using lambda expressions?

692


What is dll in vb.net?

669


What does dbml mean in texting?

684


can you allow a class to be inherited, but prevent the method from being over-ridden?

720


What is the difference between an integer and int?

660


What are cookies in c#?

745


How do I register my code for use by classic com clients?

668


Are value types sealed?

707


Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

668


Can class be protected in c#?

685


My switch statement works differently! Why?

681


How do I count the length of a string in c#?

688


What is difference between string and stringbuffer in c#?

666