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
What is jit compiler ?
What does sprintf mean?
What is the map interface in java programming?
What is a concrete classes? Is Java object class is concrete class?
What are the data types supported by java? What is autoboxing and unboxing?
What is a function easy definition?
What are the two categories of data types in the java programming language?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is compareto () in java?
Why java does not support pointers?
Which is a valid identifier?
Are arrays immutable in java?
Which one of the following suits the description of a string better: derived or primitive?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is the common usage of serialization? What exceptions occur during serialization?