tags:

views:

73

answers:

3

Possible Duplicate:
What is the difference between a private and public function?

what is diff between public class and private class

A: 

I would recommend you to go through PHP OOP Basics

Sarfraz
+2  A: 

PHP does not implement the concept of private and public classes.
The visibility can only be applied to properties and methods.

See here for an explaination.

Macmade
A: 

As mentioned above, there is no such thing as public and private classes in PHP, but there are abstract classes that can extend classes, which are effectively private as they can't be used without the base class being instantiated.

However, I don't think this is the answer you were looking for and would also recommend you read about PHP OOP basics.

Martin Bean