Can we create a object of Base class?..If we can not create a object of base class then why we need Abstract class?

Showing Answers 1 - 7 of 7 Answers

Rama

  • May 22nd, 2006
 

Yes , u can create an object of base class.but until and unless u prefix it with a keyword abstract

  Was this answer useful?  Yes

Rohini Ram

  • Jun 5th, 2006
 

Yes we can create object to the base class. Abstract class is nothing but a class in which some function have definitions and some have only declarations.

  Was this answer useful?  Yes

Hi,

There are only two mechanism in java to define a type with multiple implementations those are interfaces and abstract classes.

abstract class permit implementation of some methods in it and interface not.

  Was this answer useful?  Yes

ABYSS

  • Oct 12th, 2006
 

Yes, we can create an object of the Base class.

If we make a class as abstract then we can't create an object of that class.

we can create only pointer of that class this is because to provide one interface to access and so that runtime time polymorphism can implement.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions