Results 1 to 2 of 2
Thread: inheritance basic.
- 08-02-2008, 09:23 PM #1Member
- Join Date
- Dec 2007
- Rep Power
Please bear with me. i have a question regarding inheritance.
1. a superclass having more than one constructor
2. sub class implements just default constructor ( with no arguements ).
is this legal to instantiate sub-class by passing parameters since the constructor with such arguements is provided in superclass, ?
- 08-02-2008, 10:35 PM #2
- By java_fun2007 in forum New To JavaReplies: 3Last Post: 12-13-2007, 02:36 PM
- By javaplus in forum Advanced JavaReplies: 1Last Post: 12-07-2007, 10:07 PM
- By mew in forum New To JavaReplies: 1Last Post: 12-07-2007, 07:08 PM
- By mew in forum New To JavaReplies: 1Last Post: 12-01-2007, 11:04 PM
- By Marty in forum SWT / JFaceReplies: 2Last Post: 05-11-2007, 01:54 AM