Home TechnologyProgramming Subscribe to RSS

Can You Define Reusability In Object-Oriented Programming?

Reusability in OOP.

Answer Question

1 Answer - Sort by: Date | Rating

    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.
    0 0

    Raaga  

    answered 3 years ago

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International