Introduction to Object Oriented Programming Techniques

Chapter 13 · Tamil Nadu State Board

  • 4 min read
  • 6-question quiz

Every key point below shows the sentence from your textbook it comes from. Book back answers are solved and checked against the book; answers we could not prove are left out. How we check content

In short

This lesson explains programming paradigms and compares procedural, modular and object-oriented programming. It introduces classes and objects, along with OOP concepts such as encapsulation, abstraction, modularity, inheritance and polymorphism. These ideas help students understand how programs organize data and functions, support reuse and can be maintained. The lesson also describes benefits and drawbacks of OOP.

Written by AI from this lesson. How we check it

Key points

  • A programming paradigm is an approach to organizing a program, and the lesson describes three paradigms.
    From your textbook
    “They are Procedural programming, Modular Programming and Object Oriented Programming”
  • Procedural programming focuses on procedures and arranges programs as subroutines or subprograms.
    From your textbook
    “Programs are organized in the form of subroutines or sub programs”
  • Modular programming groups related functions into modules and keeps data under those modules.
    From your textbook
    “Data is hidden under the modules. Arrangement of data can be changed only by modifying the module”
  • OOP focuses on data and uses classes and objects to build programs.
    From your textbook
    “Object Oriented Programming paradigm emphasizes on the data rather than the algorithm. It implements programs using classes and objects.”
  • Encapsulation binds data and functions together, while data hiding prevents direct access from outside.
    From your textbook
    “The mechanism by which the data and functions are bound together into a single unit is known as Encapsulation.”
  • Inheritance builds derived classes from base classes and supports code reuse.
    From your textbook
    “The most important advantage of inheritance is code reusability.”
  • The lesson lists reuse, easier maintenance and security as advantages of OOP, and size, effort and speed as disadvantages.
    From your textbook
    “Object Oriented Programs are much larger than other programs.”
Test yourself: 6 questions

Object-Oriented Programming

Object-Oriented Programming (OOP) organizes software around objects. Each object combines data with the behaviour that works on that data. OOP uses classes to create objects.

Definition

Programming paradigm
A programming paradigm is an approach or organizing principle used to write a program.

OOP was developed to overcome drawbacks of procedural and modular programming. It encourages programs to be divided into modules and to reuse existing modules.

Procedural, Modular and Object-Oriented Programming

How the three approaches organize programs

Procedural programmingModular programmingObject-Oriented Programming
Emphasizes procedures and instructions for doing things.Divides a program into modules containing related functions.Emphasizes data and organizes programs using classes and objects.
Data items are global, and programs use subroutines or subprograms.Modules are independent and have their own local data. Data is hidden under modules.Data and associated operations are grouped into one unit.
Suitable for small software applications. Changes to a data type may need to be made in every subroutine that uses it.A module can work with its own data and with data passed to it.Relationships can be created between similar but distinct data types.
Examples: FORTRAN and COBOL.Examples: Pascal and C.Examples: C++, Java, VB.Net, Python etc.

Definition

Class
A class is a user defined data type that binds data and associated functions into one unit and represents a group of similar objects.

Definition

Object
An object is an identifiable entity with characteristics and behaviour, created from a class as an instance of that class.

Main Features of OOP

Core features

  • Encapsulation binds data and functions together in a single unit. It prevents outside code from directly accessing the data; this is called data hiding or information hiding.
  • Data abstraction shows essential features without revealing background details. Data members hold information, and methods or member functions operate on that data.
  • Modularity divides a system into functional units called modules, which can be combined into a larger application.
  • Inheritance builds new classes, called derived classes, from existing classes, called base classes. It supports code reusability.
  • Polymorphism allows a message or function to appear in more than one form.

Remember: Keep the ideas distinct: encapsulation groups and hides data with its functions; abstraction shows only essential features.

Advantages of OOP

Benefits

  • Re-usability: A class can be written once and used multiple times.
  • Redundancy: A common class can provide the same functionality to multiple classes through inheritance.
  • Easy Maintenance: Existing code is easier to maintain and modify when new objects differ only slightly from existing ones.
  • Security: Data hiding and abstraction provide only necessary data.

Disadvantages of Object Oriented Programs

Three disadvantages of OOP

DisadvantageWhat it means
SizeObject Oriented Programs are much larger than other programs.
EffortCreating Object Oriented Programs requires a lot of work.
SpeedObject Oriented Programs are slower than other programs because of their size.

Remember: Remember the three disadvantages: OOP programs can be larger, take more work to create, and run more slowly.

Programming Paradigms and Classes

Definition

Paradigm
A paradigm is an organizing principle or approach to programming.

Procedural, modular and object oriented programming

ParadigmMain idea
Procedural programmingFocuses more on procedures and organizes programs as subroutines or sub programs. Instructions tell the computer what to do.
Modular programmingCombines related procedures in a module and hides data under modules.
Object Oriented programmingFocuses on data rather than algorithms and uses classes and objects.

Definition

Class
A class is a user defined data type that represents a group of similar objects.

Definition

Object
An object is a basic unit of OOP that combines data and associated functions in a single unit.

Basic Concepts of Object Oriented Programming

Key OOP concepts

  • Encapsulation binds data and functions together into a single unit.
  • Abstraction shows only essential features without revealing background details.
  • Modularity divides a system into functional units that can be combined into a larger application.
  • Polymorphism is the ability of a message or function to appear in more than one form.
  • Inheritance builds new classes, called derived classes, from an existing class. It supports code reusability and is transitive in nature.

Encapsulation keeps data and its functions together. Abstraction limits what is shown, displaying essential features without revealing background details.

Definition

Data hiding
Data hiding is the insulation of data from direct access by a program.

Remember: Inheritance is especially important because it supports code reusability.

Questions students ask

Short, direct answers to what students search for in this chapter.

What is Object-Oriented Programming?

Object-Oriented Programming (OOP) is an approach to programming that organizes software around objects. An object combines data with the behaviour that works on it, and objects are created from classes.

What is the difference between a class and an object?

A class is a user defined data type or blueprint that represents a group of similar objects and binds data with associated functions. An object is an identifiable entity created from a class, with its own characteristics and behaviour.

What is encapsulation in OOP?

Encapsulation binds data variables and associated functions together in a single unit, such as a class. The data is not directly accessible from outside; functions in the class provide the interface to it. This protection is also called data hiding or information hiding.

What are the main advantages of OOP?

OOP supports re-usability because classes can be used multiple times. Inheritance can provide shared functionality to multiple classes. OOP also makes code easier to maintain and modify, while data hiding and abstraction help protect data by showing only what is necessary.

What are the disadvantages of OOP?

Object Oriented Programs can be much larger than other programs. They also require a lot of work to create. Their size makes them slower than other programs.

What is the difference between procedural and modular programming?

Procedural programming focuses more on procedures and organizes programs as subroutines or sub programs. Modular programming groups related procedures into modules and hides data under those modules.

Show 1 more questions

What is the main advantage of inheritance?

Inheritance allows new classes, called derived classes, to be built from an existing class. Its most important advantage is code reusability, and inheritance is transitive in nature.

Book back answers

23 textbook exercises, solved and checked against the book. Questions we could not prove are left out.

SECTION – A Choose the correct answer

  1. The term is used to describe a programming approach based on classes and objects is (A) OOP (B) POP (C) ADT (D) SOP

    • (A) OOP
    • (B) POP
    • (C) ADT
    • (D) SOP
    Try it, then show the answer

    (A) OOP

    The chapter uses OOP to describe the programming approach based on classes and objects.

    From the book: “Object-Oriented Programming (OOP) is the term used to describe a programming approach based on classes and objects.”

  2. The paradigm which aims more at procedures. (A) Object Oriented Programming (B)Procedural programming (C) Modular programming (D)Structural programming

    • (A) Object Oriented Programming
    • (B)Procedural programming
    • (C) Modular programming
    • (D)Structural programming
    Try it, then show the answer

    (B)Procedural programming

    Procedural programming places greater emphasis on procedures.

    From the book: “Procedural programming aims more at procedures.”

  3. Which of the following is a user defined data type? (A) class (B) float (C) int (D) object

    • (A) class
    • (B) float
    • (C) int
    • (D) object
    Try it, then show the answer

    (A) class

    The chapter identifies a class as a user defined data type.

    From the book: “Class is a user defined data type.”

  4. The identifiable entity with some characteristics and behaviour is. (A) class (B) object (C) structure (D) member

    • (A) class
    • (B) object
    • (C) structure
    • (D) member
    Try it, then show the answer

    (B) object

    An identifiable entity with characteristics and behaviour is called an object.

    From the book: “An identifiable entity with some characteristics and behaviour is called object.”

All 23 book back answers →

Practice

Question 1 of 6Score 0

What is the main focus of object-oriented programming?

Exam questions

Practice questions with model answers. These are not from an official paper.

How does modular programming differ from procedural programming?5 marks

Procedural programming organizes instructions into subroutines or subprograms and emphasizes procedures. Modular programming divides a program into modules of related functions, with data hidden under the modules.

Differentiate between a class and an object.5 marks

A class is a user-defined type or blueprint that represents a group of similar objects and binds data with associated functions. An object is created from a class and represents data and associated functions as a unit.

What are encapsulation and data abstraction?2 marks

Encapsulation binds data and functions together in one unit. Data abstraction shows only essential features and does not reveal background details.

State two advantages and two disadvantages of OOP.2 marks

Advantages include reusability and easier maintenance. Disadvantages include larger program size and the greater effort needed to create programs.

Watch out

  • Do not confuse a class with an object: a class is a type or blueprint, while an object is created from a class.
  • Do not treat encapsulation and abstraction as identical: encapsulation binds data and functions; abstraction shows essential features without background details.

Still stuck on this lesson?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →