Can we create instance for Abstract class?
Answer Posted / manjit
abstract class aa {
public abstract void main(String[] args);
}
class aaa {
public static void main(String[] args)throws Exception{
Object x = Class.forName("aaa").newInstance();
System.out.println(x);
}
}
Try the above program and be amazed and shocked!
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is the meaning of int parse in c#?
What is desktop application testing?
What is a partial class. Give an example?
What are indexers in c# .net?
What tool we have to use to install assembli in gac folder.
What is uint64?
Why singleton pattern is used in c#?
Explain about CTS?
Is it possible to have a static indexer in c#? Allowed in c#.
What is c# used for?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
What is polymorphism in c sharp?
Is stringbuilder better than string?
Is it good to use var in c#?
What is dbcontext c#?