Interview Questions forum : Ask your doubt
Please login or register to take complete advantage of this forum
January 06, 2009, 06:46:25 AM
905 Posts Topics by 1137 Members
Mywalkin Forum  |  Java Interview Questions  |  « previous next »
Pages: [1]
Topic

Can we create constructor for abstract class?

BKR
Newbie
*
Posts: 19


View Profile
Can we create constructor for abstract class?
Logged
BKR
Newbie
*
Posts: 19


View Profile
Yes
Logged
Biplab
Newbie
*
Posts: 2


View Profile
No we cannot create a constructor for an abstract class, becoz abstract class cannot instantiated.
Logged
balakondareddy
Newbie
*
Posts: 1


View Profile
No,because we can't create the instantiation for abstract class.

Logged
nazeer
Newbie
*
Posts: 9


View Profile
All the classes including the abstract classes can have constructors.Abstract class constructors will be called when its concrete subclass will be instantiated.  Smiley
Logged
mangaiah chowdary
Newbie
*
Posts: 9


View Profile
yes
Logged
sudaredd
Newbie
*
Posts: 3


View Profile Email
yes, we can create Constructor to abstaract class.

it's constructor will be invoked when its subclass object is created.

if you want call explicitly use super(10,20);
Logged
prasad.muddam
Newbie
*
Posts: 4


View Profile
Yes, By the using of the super keyword
Logged
Pages: [1]
Mywalkin Forum  |  Java Interview Questions  |  « previous next »
    Jump to:  


    Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | Sitemap