OOP OOAD
Object means a real-world entity such as a pen, chair, table, computer, watch, etc. Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. Object Any entity that has state and behavior is known as an object. An Object can be defined as an instance of a class. An object contains an address and takes up some space in memory. Class Collection of objects is called class. It is a logical entity. Inheritance(IS-A) When one object acquires all the properties and behaviors of a parent object, it is known as inheritance. It provides code reusability. It is used to achieve runtime polymorphism. Polymorphism If one task is performed in different ways, it is known as polymorphism. Uuse method overloading and method overriding to achieve polymorphism. Abstraction Hiding internal details and showing functionality is known as abstraction. In Java, use abstract class and interface to achieve abstraction. Encapsulation ...