This Is A Written Assignment Where You Will Research Answers To The Be This is a written assignment where you will research answers to the below questions. All answers will be in your own words. Any copy/paste = 0/100. Feel free to use a combination of text and code if that helps you explain a concept easier. Please type your answers to the below questions in a Word document, 12 pt font, single space (please put a blank line between each answer to separate them): What is object-oriented programming (OOP)? Give examples Name at least two benefits of OOP. Give examples What is an object? Give an example What is a class? Give an example There are main components of OOP, define each and also explain how works with examples: Inheritance Polymorphism Encapsulation Data abstraction I expect to see detailed answers to each of the above. Short, vague answers will result in a low grade.
Paper For Above instruction Object-Oriented Programming (OOP) is a programming paradigm that organizes software design around data, or objects, rather than functions and logic. In OOP, objects are instances of classes that encapsulate data and behaviors, facilitating modular, reusable, and maintainable code. For example, in a vehicle management system, a "Car" could be an object, with attributes like color and model, and methods such as drive() or brake(). An example of a benefit of OOP is code reuse; once a class is written, it can be instantiated multiple times across different parts of a program, enhancing efficiency. Another benefit is improved scalability and maintenance, as objects and classes allow developers to modify or extend functionalities without affecting other parts of the system. An object in programming is a specific instance of a class containing data attributes and methods associated with it. For example, a specific car object could have attributes such as color="red" and model="Sedan" and methods like start() or stop(). A class, on the other hand, is a blueprint or template for creating objects, defining their attributes and behaviors. For example, a class "Animal" might define attributes like name and methods like eat() and sleep(). The main components of OOP include Inheritance, Polymorphism, Encapsulation, and Data Abstraction. Inheritance allows a class (child) to inherit properties and behaviors from another class (parent), promoting code reuse and hierarchical relationships. For example, a "Dog" class could inherit from an "Animal" class, gaining all its attributes and methods while adding specific features like bark(). Polymorphism enables objects of different classes to be treated as instances of a common superclass, primarily through