- Properties: Properties are the characteristics of an object.
- Functions: Functions are the action which will be performed by an object.
Examples:
Some samples of objects of different variious are as follows:
- Physical Objects:
Vehicles likes cars, bus, trucks etc.Electrical components
Elements of Computer-User Environment
- Windows
MenusGraphics objects
Mouse and Keyboard
- User-defined Data Types
TimeAngles
Properties of Object:
The characteristics of an object are called its properties or attributes. Each object has its own properties. These properties are accustomed to describe the object. For instance, the properties of an object. Person can be as follows:- Name
- Age
- Weight
The properties of an object Car is be as follows:
- Color
- Price
- Model
- Engine power
The set of values of the attributes of a selected object is named its state. It means that the state of an object may be determined by the values of its attributes.
Functions of Object:
An object can perform different tasks and actions.The actions that may be performed by the an object referred to as functions and methods. For the