Object oriented programming is the most preferred programming technique now a day only due to the flexibility of re usability. Re usability is actually an attribute that makes the object oriented programming more flexible and attractive.
As this programming is based on objects. Object is actually a collection of data and functions that are used to operate on that data. These objects are defined as independent entities because the data inside each object represents the attributes of object and functions are used to change these attributes as required by a program.
These objects act just like spare parts of any program. Thus, they are not limited to any specific program; rather they can be used in more than one application as required.
These objects are defined as an independent entity in a program, and afterward they can be used in any other program that needs the same functionality. This reuse of objects helps in reducing the development time of programs.
This reuse also plays a basic role in inheritance that is a characteristic of object oriented programming.In inheritance, new objects are defined that inherit the existing objects and provide extended functionality as required. It means that if we require some new object that also needs some functionality of existing one's then it is easy to inherit the existing one instead of writing all the required code once again.
As this programming is based on objects. Object is actually a collection of data and functions that are used to operate on that data. These objects are defined as independent entities because the data inside each object represents the attributes of object and functions are used to change these attributes as required by a program.
These objects act just like spare parts of any program. Thus, they are not limited to any specific program; rather they can be used in more than one application as required.
These objects are defined as an independent entity in a program, and afterward they can be used in any other program that needs the same functionality. This reuse of objects helps in reducing the development time of programs.
This reuse also plays a basic role in inheritance that is a characteristic of object oriented programming.In inheritance, new objects are defined that inherit the existing objects and provide extended functionality as required. It means that if we require some new object that also needs some functionality of existing one's then it is easy to inherit the existing one instead of writing all the required code once again.