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

What is meant by local variable and instance variable?

602


what are the methods in object?

633


How to obtain a performance profile of java program

547


What is static keyword in java?

555


What is an iterator java?

533






How does multithreading take place on a computer with a single cpu?

550


Why string is not thread safe?

543


How many classes can any class inherit java?

510


Why do we need wrapper classes?

580


What are pass by reference and pass by value?

529


What is stored procedure. How do you create stored procedure ?

1498


Is vector thread safe in java?

561


What exactly is methodology?

489


Can an abstract class be a final class?

531


Mention a package that is used for linked list class in java.

529