What is OOP?
GeneralClass 10CBSEAnswered 25 May 2026
Answer
OOP stands for Object-Oriented Programming a way of writing code by organising it around "objects" rather than a long list of instructions.
An object bundles together data (properties) and actions (methods). A "Car" object has properties like colour and speed, and methods like accelerate() and brake().
OOP is built on four ideas:
- Encapsulation: keep an object's data private; interact with it only through defined methods
- Inheritance: a new object type inherits from an existing one (ElectricCar inherits from Car, adds
chargeBattery()) - Polymorphism: different objects respond to the same method differently (both Car and Bicycle have
move(), but implemented differently) - Abstraction: hide complexity behind a simple interface you do not need to know how an engine works to call
accelerate()
Languages using OOP: Python, Java, C++, Ruby.
Suggested Q&A
General · Class 10- GeneralClass 10Explain the role of an entrepreneur as an innovator and job and wealth generator.
- GeneralClass 10The spirit of entrepreneurship helps an individual to grow. Explain this statement in detail.
- GeneralClass 10Explain the process of entrepreneurship in detail.
- GeneralClass 10Explain the role of entrepreneur as described by Peter Drucker.
- GeneralClass 10How does Jean Baptiste Say envisage the role of the entrepreneur?
- GeneralClass 10According to a famous thinker Peter Drucker, innovation is a specific instrument of an entrepreneur. Hence he believes that an effective entrepreneur converts a source into a resource. When is a source converted into a resource? Explain with the help if an example.