Skip to main content
Chapter 18 of 29
Syllabus

Classes and Objects with Constructors/Destructors — Syllabus

NIOS · Class 12 · Computer Science

What Classes and Objects with Constructors/Destructors covers in NIOS Class 12 Computer Science: 4 topics, for the 2026-27 session.

127 questions32 flashcards2 formulas & key relations5 concepts

Interactive on Super Tutor

Studying Classes and Objects with Constructors/Destructors? Get the full interactive chapter.

Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for syllabus and more.

Free trial, no card needed.

4 Topics · NIOS Class 12 Computer Science · 2026-27

Topics in Classes and Objects with Constructors/Destructors

1

1. Class and Object Basics

  • A class specification has two parts: class declaration and class function definitions.
  • The class body is enclosed in braces and terminated by a semicolon.
  • Variables declared inside the class are called data members.
2

2. Nesting of Member Functions and Memory Allocation

  • A member function can be called by using its name inside another member function of the same class.
  • This is known as nesting of member functions.
  • The class greatest demonstrates nesting because display() calls largest().
3

3. Constructors

  • A constructor is a special member function that initializes the objects of its class automatically when it is created.
  • Its name is the same as the class name.
  • A constructor has no return type, not even void.
4

4. Destructor

  • A destructor is used to destroy the objects that have been created by a constructor.
  • The destructor name is the class name preceded by a tilde.
  • A destructor never takes any argument and never returns any value.

Key Concepts

Central concept: Classes and Objects with Constructors/Destructors

ClassObjectAccessing membersMember function definitionNesting of member functionsMemory allocationConstructorDefault constructor

Work through every topic in Classes and Objects with Constructors/Destructors with notes and quizzes

Start This Chapter

Frequently Asked Questions

What are the important topics in Classes and Objects with Constructors/Destructors for NIOS Class 12 Computer Science?
Key topics in Classes and Objects with Constructors/Destructors include Class and Object Basics, Nesting of Member Functions and Memory Allocation, Constructors, Destructor. Study these first, then practise questions on each for the NIOS Class 12 board exam.
How should I revise Classes and Objects with Constructors/Destructors for the NIOS Class 12 board exam?
Learn the core ideas first, then work through the 127 practice questions on Classes and Objects with Constructors/Destructors. Revise definitions regularly and use flashcards for quick recall before the exam.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.

For serious students

Get the full Classes and Objects with Constructors/Destructors chapter — start free.

Quizzes, flashcards, an AI doubt solver and a study plan for NIOS Class 12 Computer Science. Free to start, no card needed.