•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,588 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,668 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 129 | Replies: 2
![]() |
•
•
Join Date: Apr 2005
Location: New York state
Posts: 449
Reputation:
Rep Power: 5
Solved Threads: 65
http://us3.php.net/manual/en/language.oop5.decon.php
Unless you have created a constructor that overrides the parent constructor it will use the inherited method
Unless you have created a constructor that overrides the parent constructor it will use the inherited method
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
•
•
•
•
Is there any way to initialize a class public variable at the time of object creation. But the case is that I have a child class and I dont want to over ride the parent constrctor. So is there any way out or any function that will be called at the time of object implicitly.
Thanks In advance
I don't think there is anything else called by the PHP engine during instantiation of a class except for the constructor.
I think the question is why you don't want to override the parent. If the child class calls the parents constructor within its own constructor, then its just like not overriding the parent, except that you have are few more function calls.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Other Threads in the PHP Forum
- Previous Thread: edit PDF with PHP
- Next Thread: how can i send selected checkbox values to email?


Linear Mode