why abstract class does not have object creation
Answer Posted / kd singh
"Abstract class has not implemented method so, we cant create the object" "The word 'Abstract' instruct the clr that not to create object of the class"
But in a simple class where we have all virtual method, able to create an object???
Also, we can define different access modified to Abstract class constructor like private, protected or public.
An abstract type is defined largely as one that can't be created. You can create subtypes of it, but not of that type itself. The CLI will not let you do this.
An abstract class has a protected constructor (by default) allowing derived types to initialize it.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
Why does java have two ways to create child threads? Which way is better?
what is thread in Java ?
Is void a data type?
What are untrusted applets?
What is final method?
what is meant by HQL?
What is the role of the java.rmi.naming class?
Do you need to import math in java?
What is the concept of multithreading?
Why local variables are stored in stack?
Explain the difference between map and flatmap stream operation?
What is the super void?
Can you pass functions in java?
Which is a valid identifier?