Can we create instance for Abstract class?
Answer Posted / lakshminarayana golla
hi manjitt can any body explain me about this below program?
it is executing successfully without any errors.
can u explain me what is the concept hide in this program
please.....
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);
}
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is mvc firstordefault?
What is the use of console readkey in c#?
Can a struct inherit from another struct or class in c#?
What is window application in c#?
How do you prevent a class from being inherited in c#?
What is the difference between a method and a property?
Explain the mechanism of VB.NET/C# achieve polymorphism?
What is difference between assembly and namespace?
Is versioning applicable to private assemblies?
How do I move from one form to another in c#?
What's new in c#?
What sort algorithm does c# use?
What is void method?
How Is The Dll Hell Problem Solved In .net?
What is iqueryable in c#?