Results 1 to 10 of 10
Thread: Class vars - public or private?
Nov 12, 2004, 05:38 #1
- Join Date
- Jun 2002
- Wellington, NZ
- 0 Post(s)
- 0 Thread(s)
Class vars - public or private?
I don't often delve into OO but it's becoming more common in the PHP projects I develop.
I just wanted to know simply - what are public and private variables within a class? Can you give me some basic examples?
Also while we're on the subject - what are the differences between and circumstances of use of constructor and other types of class-methods?
Thanks a lot