Java OOPs Concepts
What is OOPs ? Object-Oriented Programming is a paradigm that provides many concepts, such as Object Class Inheritance Polymorphism Abstraction Encapsulation Coupling Association Aggregation Composition Object : Any entity that has state and behavior is known as an object. An object can be defined as an instance of a class, and there can be multiple instances of a class in a program. An Object contains both the data and the function, which operates on the data. For example - Human, Animal, Pen, Table, Car, etc. Class : The class is a group of similar entities. It is only an logical component and not the physical entity. For example, if you had a class called “Expensive Cars” it could have objects like Mercedes, BMW, Toyota, etc Inheritance : Inheritance is the concept of using the features of parent(inherited by child) class by the child(that inherits the parent) class .I nheritance is use for re-usability of code. W...