Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parent class Child class

Status
Not open for further replies.

mimififi

Programmer
Jan 9, 2003
1
DE
Hi
Could you say to me how I can put the parent konstructor in the Child konstructor????

thanks
Nadja
 
The parent constructor is automatically called when you create a new instance of your child class.

If you explicitly want to change the constructor being called in the parent class, you can do thus by entering : XXX(x,y, etc...) before the opening bracket of your child's constructor (where XXX is the name of the parent class, of course).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top