Monday, December 19, 2016

What do you Understand by the objects and classes ? (C++)

Distinguishable entities are called objects. A paragraph in a document, a window on my workstation and the white queen in a chess game are example of objects.
Objects can be concrete such as a file in a file system, or conceptual such as a scheduling policy in  a multiprocessing operating system. Each object has its own inherent identical.
In other words, two objects are dentist even if all their attribute values are identical.
Objects with the same data structure and behavior are grouped into a class paragraph, window and chess piece are example of classes , A class is an abstraction that describes properties important to an application and ignores the rest.
Each class describes a possibly infinite set of individual objects.Each objects is said to be an instances of its class. Each instants of an class has its own value for each attribute but shares the attributes names and operation with other instances of the class.

Objects are as a concept,abstraction or thing with crisp boundaries  and meaning for the problem at hand , objects serve two purpose. They promote understanding of the real world and provide a practical basis for computer implementation. Decomposition of a problem into objects depends on judgment and nature of the problem. There is no one correct representation .

No comments:

Post a Comment