Object Oriented Programming: It is a problem solving technique to develop software systems. It is a technique to think real world in terms of objects. Object maps the software model to real world concept.These objects have responsibilities and provide services to application or other objects.
Class: A class describes all the attributes of objects, as well as the methods that implement the behavior of member objects. It’s a comprehensive data type which represents a blue print of objects. It’s a template of object.
Object: It is a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Objects are members of a class. Attributes and behavior of an object are defined by the class definition.
Relationship between Classes and Objects: They look very much same but are not same. Class is a definition, while object is a instance of the class created. Class is a blue print while objects are actual objects existing in real world. Example we have class CAR which has attributes and methods like Speed,Brakes, Type of Car etc. Class CAR is just a prototype, now we can create real time objects which can be used to provide functionality. Example we can create a Maruti car object with 100 km speed and urgent brakes.
|
| Author: Gaurav 07 Jul 2009 | Member Level: Silver Points : 1 |
Please give details of the other alied concepts related to oops like aggregation, composition, inheritance, and finer level details of the object memory allocation in each case.
|
| Author: Manigandan 07 Jul 2009 | Member Level: Gold Points : 1 |
Hi,
The OOPS concepts mainly deals with Encapsulation,Inheritance,Polymorphism Etc.,
|
| Author: prashanth 24 Jul 2009 | Member Level: Silver Points : 1 |
hi this is prashanth i want to start the dotnet from the concepts and i want to attend the interview of 2+years experience can you suggest how the process starts
|