Showing posts with label OOP. Show all posts
Showing posts with label OOP. Show all posts

Wednesday, June 13, 2012

OOPs Concept

Class




  • A class is a user defined data type that behaves like a built in data type.

  • A class acts as a blueprint for an object.

  • A class contains all the attributes and behavior of an object.

  • A class is a wrapper/container of an object.

  • A class doesn’t occupy apace in memory.


Object


Instance of Class is called object. An object is created in memory using keyword “new”.




  • An object is an instance of a class.

  • It is a run time entity.

  • Anything in this real world can be termed as object.

  • An object possesses attributes and behavior.

  • An object occupies space in memory and utilizes CPU processing.