This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
hi, how super class constructor is called when sub class constructor is called Thanx
Fei Ng
Ranch Hand
Joined: Aug 26, 2000
Posts: 1241
posted
0
for example... class super {} class sup extends super {} the compiler will insert a default constructor for super and sup right?? like this: super(){} and sup(){} but it will also insert super(); in sup() {} like this: sup(){ super(); } In your code if you write contructor yourself like sup(){ .... .... } compiler will insert super(); at the first line like this: sup(){ super(); .. .. } if you want u can put super(); in your contructor but it must be at the firt line. Hope this is clear, i have a small window which i can't see what i typed.
Argm Mastoi
Ranch Hand
Joined: Oct 16, 2001
Posts: 35
posted
0
very good work with small window. I understood the situation thanx.