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


Please Help Members By Posting Answers For Below Questions

According to java operator precedence, which operator is considered to be with highest precedence?

593


What are the main differences between the java platform and other platforms?

524


How do you write methodology?

556


What are the Static and Dynamic Variables? Differentiate them.

594


What is skeleton and stub?

585






What is the format specifier?

509


What is prime number in java?

530


Can you override a final method?

573


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

639


What is the difference between Error, defect,fault, failure and mistake?

650


What is difference between word and integer?

588


Why is it called a string?

559


What does %d do in java?

574


What are the methods available in a class?

577


What do you mean by global variable?

520