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 difference between filereader and bufferedreader?
Difference between stack and queue?
What is parsing and its types?
What is anti pattern in cyber security?
What are the java ide's? Explain
What is connection class in java?
How can we pass argument to a function by reference instead of pass by value?
What is the purpose of the return statement?
What is off heap memory?
Explain about oops concepts.
What is exception hierarchy in java?
What is methodological theory?
What is a parameter in matrices?
What is the need of transient variables in Java ?
Difference between nested and inner classes ?