Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Is it possible to create object of abstract class?

user-image
Question added by Vani Acharya , Assistant Teacher , Lorven Public School Chandapura
Date Posted: 2014/07/02
Mohammed Ameen
by Mohammed Ameen , Java Developer , TATA Consultancy Services Limited (TCSL)

We cannot create objects of Abstract Class.

 

EXPLANATATION: Abstract class is a class which can contain both abstract and concrete methods.Hence suitable place for defining common functionalities across all the implementations.In Short,Abstract class is used to DEFINE SKELETAL STRUCTURE which the subclass must follow.

Ayushi Bansal
by Ayushi Bansal , Intern , Wipro Infotech Ltd.

No we can't create object of abstract class as abstract class is that class in which we declare and not define the method.And for that we implement,not create the object.But this is not always true sometimes we can create object indirectly by using inner class.

does nt create the object 

Deleted user
by Deleted user

Nope.

nishanth soma
by nishanth soma , junior software developer , Halsys it solutions

no

Arpit Khatri
by Arpit Khatri , Java Technical Lead , Qmetry india Pvt ltd

No.

 

You can't instantiate an abstract class but subclasses instance  of  there abstract class is possible.

Ferdous Tahir
by Ferdous Tahir , Computer Teacher , Al - Yusr International School

No

Shameer Habeeb
by Shameer Habeeb , Java/J2ee Team Leader, Corratech, Infopark, Cochin , Kerala

No, You can only upcast to it.

More Questions Like This