Page 1 of 1

Is abstract modifier possible with constructor

Posted: Wed Mar 06, 2013 8:22 pm
by Sweetpin2
Hi,

Is abstract modifier possible with constructor? Can i get an example?

Re: Is abstract modifier possible with constructor

Posted: Wed Mar 06, 2013 9:00 pm
by Guest
Sweetpin2 wrote:Hi,

Is abstract modifier possible with constructor? Can i get an example?
I suggest that you go through this book.

Manning Early Access Program
OCA Java SE 7 Programmer I Certification Guide

Re: Is abstract modifier possible with constructor

Posted: Thu Mar 07, 2013 7:19 am
by admin
No, because it doesn't make sense. abstract means you can't have an instance of that specific class while constructor means you are creating an instance of that class.

Re: Is abstract modifier possible with constructor

Posted: Thu Mar 07, 2013 11:19 am
by Sweetpin2
Guest wrote:
Sweetpin2 wrote:Hi,

Is abstract modifier possible with constructor? Can i get an example?
I suggest that you go through this book.

Manning Early Access Program
OCA Java SE 7 Programmer I Certification Guide
Hi,

Thanks a lot for this suggestion