Hi guys. I'm a new member of this forum, and seems to me that it si quite promising.
Now, this would be my first post, and I'd like to share a bit of a problem.
Here's the situation...
I have two classes , one is a parent class, and the other is a child that extends to it. Now both classes have private memebers that are accessed via properties. Now, what I want to do is to iterate through the object, from the child class, and be able to get the members of the parent class too. How can I do this?
Parent and child class relationship problem
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Parent and child class relationship problem
hhmm..this one didn't seem to work for me. This function did not return anything, and I think I know the reason why.
In my object, all the members are private, and only accessed through properties. I guess what this functions does is to return just the members, if they are public, which is also the default on php.
In my object, all the members are private, and only accessed through properties. I guess what this functions does is to return just the members, if they are public, which is also the default on php.