Close Menu
Tech RajyaTech Rajya
  • e-Notes
    • Computer
  • Technology
    • Software
    • TikToK
    • AWS
  • Smartphone
    • Samsung
    • OnePlus
    • Xiaomi
    • Apple
    • Realme
    • Google
  • Laptop
  • Camera
  • Cars
    • Tesla
    • BYD
    • Honda Cars
    • Jaecoo
    • Mahindra
    • Foton
  • Motorcycle
    • Honda
    • Suzuki
    • Triumph
  • Fonts
  • Education
    • NEB
    • Retotal
    • SEE
    • College
    • TSC
  • Deals
    • Mobile Plans
    • Insurance

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

What's Hot

Xiaomi Tag Price in Nepal 2026: Affordable Smart Tracker Finally Arrives

May 15, 2026

TVS Apache RTX 300 Price in Nepal 2026: Powerful New Adventure Bike Ready to Rule the Roads

January 23, 2026

Cheapest Car Insurance in USA (2026 Guide)

January 10, 2026
Facebook X (Twitter) Instagram
Friday, May 15
Facebook X (Twitter) Instagram Pinterest Vimeo
Tech RajyaTech Rajya
  • e-Notes
    • Computer
  • Technology
    • Software
    • TikToK
    • AWS
  • Smartphone
    • Samsung
    • OnePlus
    • Xiaomi
    • Apple
    • Realme
    • Google
  • Laptop
  • Camera
  • Cars
    • Tesla
    • BYD
    • Honda Cars
    • Jaecoo
    • Mahindra
    • Foton
  • Motorcycle
    • Honda
    • Suzuki
    • Triumph
  • Fonts
  • Education
    • NEB
    • Retotal
    • SEE
    • College
    • TSC
  • Deals
    • Mobile Plans
    • Insurance
  • e-Notes
  • Technology
  • Smartphone
  • Laptop
  • Camera
  • Cars
  • Motorcycle
  • Fonts
  • Education
  • Deals
Tech RajyaTech Rajya
Home»e-Notes»What is OOP (Class 12)
e-Notes

What is OOP (Class 12)

sohamBy sohamNovember 28, 2025No Comments2 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Share
Facebook Twitter LinkedIn Pinterest Email

insights: What is OOP (Class 12)

Table of Contents

Toggle
  • What is OOP (Class 12)
      • Example:
    • Key Concepts of OOP
    • Advantages
    • Example Languages
  • Read Online or Download the Slide.

What is OOP (Class 12)

What is OOP (Class 12)

Object-Oriented Programming (OOP) is a programming model that organizes software design around objects rather than functions and logic. In OOP, we need to understand classes and objects.

  • Objet: A real-world entity that has attributes (properties) and behaviours methods/functions).
  • Class: It is a blueprint or template used to create objects.

Example:

  • Class: Car
  • Objects: MyCar, YourCar
  • Attributes: color, model, speed
  • Methods: start(), stop(), accelerate()

Key Concepts of OOP

  • Class: Blueprint for creating objects.
  • Object: Instance of a class.
  • Encapsulation: Wrapping data (attributes) and methods in a single unit (class). Helps in data hiding.
  • Inheritance: Acquiring properties and methods from another class.
  • Polymorphism: The Same function/method can behave differently in different contexts.
  • Abstraction: Hiding unnecessary details and showing only the important features.

Types of OOP / Inheritance

Inheritance is a key part of OOP. It allows a class to inherit attributes and methods of another class. There are several types:

Single Inheritance

  • A class inherits from one parent class.
  • Example:

class Vehicle:

def start(self):

print(“Vehicle started”)

class Car(Vehicle):

pass

c = Car()

c.start()  # Output: Vehicle started

Multiple Inheritance

  • A class inherits from more than one parent class.
  • Example:

class Engine:

def engine_type(self):

print(“V6 Engine”)

class Wheels:

def wheel_count(self):

print(“4 wheels”)

class Car(Engine, Wheels):

pass

c = Car()

c.engine_type()

c.wheel_count()

Multilevel Inheritance

  • A class inherits from a class that itself inherits from another class (like a chain).
  • Example:

class Vehicle:

def vehicle_type(self):

print(“Generic Vehicle”)

class Car(Vehicle):

def car_type(self):

print(“Car”)

class SportsCar(Car):

pass

s = SportsCar()

s.vehicle_type()

s.car_type()

Hierarchical Inheritance

  • Multiple classes inherit from one parent class.
  • Example:

class Vehicle:

def start(self):

print(“Vehicle started”)

class Car(Vehicle):

pass

class Bike(Vehicle):

pass

c = Car()

b = Bike()

c.start()  # Vehicle started

b.start()  # Vehicle started

Hybrid Inheritance

  • A combination of two or more types of inheritance (single, multiple, multilevel).
  • Often used in complex programs.

Advantages

  • Reusability of code (inheritance).
  • Easier to maintain and debug.
  • Models real-world problems better.
  • Security through encapsulation.

Example Languages

  • Java, C++
  • Python
  • C#
  • Ruby

Read Online or Download the Slide.

Thank you for your view on OOP.

Also read:

Mobile Price in Nepal in 2025

Price of Samsung Mobile in Nepal 2025

 

 

 

 

 

 

Classes and Objects for beginners Learn OOP easily Object-Oriented Programming tutorial OOP advantages and concepts OOP Class 12 Python OOP example Types of inheritance in OOP
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleBest Mobile Under 30000 in Nepal
Next Article Moto G96 Mobile Price in Nepal
soham
  • Website

Related Posts

e-Notes

Recent Trends in Technology: E-Learning, AI, Robotics & E-Governance Explained

January 4, 2026
e-Notes

7 Powerful Software Process Models Explained

January 1, 2026
Add A Comment
Leave A Reply Cancel Reply

Top Posts

7 Powerful Software Process Models Explained

January 1, 202685 Views

What is OOP (Class 12)

November 28, 202568 Views

Price of Deepal S07 in Nepal

December 31, 202553 Views
Stay In Touch
  • Facebook
  • YouTube
  • TikTok
  • WhatsApp
  • Twitter
  • Instagram
Latest Reviews

Subscribe to Updates

Get the latest tech news from FooBar about tech, design and biz.

Facebook X (Twitter) Instagram Pinterest
© 2026 Techrajya.com Designed by Techrajya.com.

Type above and press Enter to search. Press Esc to cancel.