
#Basics of oops interview questions code
This feature help us to get rid of redundant code hence reducing the overall size of the code. Inheritance is a one of the feature of OOPs which allows classes to inherit common properties from other classes or parent class. A class is a logical entity does not occupied memory space when created.A class binds methods and data together into a single unit.A class can be a template or a blueprint of object within which we can create object.An object can be a physical entity and occupied space when created.An object can be a real-world entity which is an instance of a class and act like a variable of class.The base class must be inherited by some other subclass.Multiple objects have multiple states or attributes, and behaviors. In oops the concept of polymorphism gives flexibility to the program by allowing the entities to have multiple forms.Īn object can be consider as a real-world entity which is the basic part of OOPs for like cat, chair, mouse, dog, etc.Oops allow use to divide Problems into different parts to making it simple to solve.OOPs allows data privacy, hence, private data is kept confidential.


Oops allow to bind data and code together by encapsulation.Oops allow use reusability of Code means we can be reused code with the help of inheritance hence reducing redundancy.OOPs follow or implements real-world entities like polymorphism ,inheritance, hiding, etc into programming strategies. Object-Oriented Programming(OOPs) is a kind of programming which is based on objects instead of functions and procedures.
