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
What is c sharp used for?
What is command object in c#?
How to get the sum of last 3 items in a list using lambda expressions?
What is dll in vb.net?
What does dbml mean in texting?
can you allow a class to be inherited, but prevent the method from being over-ridden?
What is the difference between an integer and int?
What are cookies in c#?
How do I register my code for use by classic com clients?
Are value types sealed?
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
Can class be protected in c#?
My switch statement works differently! Why?
How do I count the length of a string in c#?
What is difference between string and stringbuffer in c#?