But, all the methods are concrete... I can't put any method that is abstract
Create 1 constructor in Costumer and another one identical at Employee?
Paras Jain
SCJP 5.0
Dumn my foot! You haven't done anything daft. The concept of inheritance and where the constructor goes is complicated to understand. Don't go calling yourself a dumn.Originally posted by Andre Brito:
Such a dumn!
Thanks folks!
Yes, that is correct. If your constructor takes any parameters, it must be called by subclass constructors.Originally posted by Andre Brito:
Hehe. Thanks CR!
But, only to finnish: an abstract class can't create any objects of that type, but it can have a constructor, that will be used by subclasses, right?
Cumps!
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |