What is a Class ?
Posted by Raj
Class in OOP
class is like a blueprint/template in OOPs, and this template is used to create objects.The collection of properties & behavior of an object is also called as class.A class contains properties, fields, data members, attributes.
Example:
Car is an object , cars is a class
public class cars
{
//
}
According to the sample given below we can say that the cars object, named object_car, has created out of the cars class.
cars object_car = new cars();
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
class,
class a,
classes in OOP,
first class,
it classes,
online classes,
OOP interview questions and answers,
PHP,
PHP interview questions and answers,
the class,
what is an class
.You can leave a response, or trackback from your own site.