ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Is it possible to create object of abstract class?

user-image
تم إضافة السؤال من قبل Vani Acharya , Assistant Teacher , Lorven Public School Chandapura
تاريخ النشر: 2014/07/02
Mohammed Ameen
من قبل 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
من قبل 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.

nishanth soma
من قبل nishanth soma , junior software developer , Halsys it solutions

no

Arpit Khatri
من قبل 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
من قبل Ferdous Tahir , Computer Teacher , Al - Yusr International School

No

Shameer Habeeb
من قبل Shameer Habeeb , Java/J2ee Team Leader, Corratech, Infopark, Cochin , Kerala

No, You can only upcast to it.

المزيد من الأسئلة المماثلة