Saturday 15 October 2011

What is a class in java?

A class is a blueprint for objects. The class defines variables, methods and objects. The object manipultates data through methods.

Classes are fundamental units in object oriented programming. We use class to create objects. Each instance carries its own data. If data belonging to one object ,if changed it does not affect the data belonging to the other object. 

No comments:

Post a Comment