Skip to content

Object Oriented Programming in C++ syllabus

CSIT 20211 units · 60 topicsAcademic year 2083/84
Browse the units

1Introduction to C++ and OOP (3 hrs)

  1. 1.1
    Evolution of C++ from C
  2. 1.2
    Key differences between C and C++
  3. 1.3
    Structure of a C++ program
  4. 1.4
    Basic I/O operations (Cin, Cout)
  5. 1.5
    Introduction to OOP concepts: Class, Object, Abstraction, Encapsulation, Inheritance, Polymorphism

2Classes and Objects (7 hrs)

  1. 2.1
    Defining classes and creating objects
  2. 2.2
    Access specifiers: public, private, protected
  3. 2.3
    Namespace
  4. 2.4
    Scope resolution operator
  5. 2.5
    Member functions (inside and outside class)
  6. 2.6
    Inline function
  7. 2.7
    Storage classes: (automatic, external, static, register)
  8. 2.8
    Static data members and functions
  9. 2.9
    This pointer
  10. 2.10
    Constructors and destructors
  11. 2.11
    Types of constructor (default, parameterized)
  12. 2.12
    Dynamic constructor
  13. 2.13
    Copy constructor
  14. 2.14
    Constructor overloading
  15. 2.15
    Manipulating private data members

3Operator Overloading and Type Conversion (7 hrs)

  1. 3.1
    Introduction to operator overloading
  2. 3.2
    Overloading unary and binary operators
  3. 3.3
    Friend functions
  4. 3.4
    Friend class
  5. 3.5
    Type conversion: Basic-to-class, Class-to-basic, Class-to-class

4Inheritance (7 hrs)

  1. 4.1
    Base class and Derived class
  2. 4.2
    Concept and types of inheritance
  3. 4.3
    Constructors and destructors in inheritance
  4. 4.4
    Ambiguity and virtual base classes
  5. 4.5
    Object slicing

5Polymorphism and Virtual Functions (7 hrs)

  1. 5.1
    Function overloading
  2. 5.2
    Function overriding
  3. 5.3
    Pointers to objects
  4. 5.4
    Virtual functions and late binding
  5. 5.5
    Pure virtual functions and abstract classes

6Templates and Exception Handling (7 hrs)

  1. 6.1
    Function templates and class templates
  2. 6.2
    Use of templates
  3. 6.3
    Exception handling basics: Try, throw, catch blocks
  4. 6.4
    Multiple catch blocks and nested try
  5. 6.5
    Purpose of exceptional handling

7File Handling in C++ (7 hrs)

  1. 7.1
    File streams (ifstream, ofstream, fstream)
  2. 7.2
    Reading from and writing to files/console
  3. 7.3
    File modes
  4. 7.4
    Binary and text file operations
  5. 7.5
    Command line arguments
  6. 7.6
    File pointer and their manipulator: specifying the position, specifying the objects, tellg(), seekg(), tellp(), seekp()

8Practical Works

  1. 8.1
    Creating classes and objects
  2. 8.2
    Implementing inheritance and polymorphism
  3. 8.3
    Using file I/O operations
  4. 8.4
    Building small projects such as a student record system, inventory management, or banking application

9Course Description Notes

10Course Objectives

  1. 10.1
    Understand the fundamentals of object-oriented programming.
  2. 10.2
    Use C++ syntax and semantics to write efficient object-oriented programs.
  3. 10.3
    Implement key OOP concepts like classes, inheritance, polymorphism, and abstraction.
  4. 10.4
    Apply exception handling and file operations in real-world problems.
  5. 10.5
    Develop reusable and maintainable software systems.

11Reference Books

  1. 11.1
    E. Balagurusamy, Object-Oriented Programming with C++, Tata McGraw-Hill publication.
  2. 11.2
    Herbert Schildt, C++: The Complete Reference , Tata McGraw Hill publication.
  3. 11.3
    Robert Lafore ,Programming in C++ , SAMS Publication.
  4. 11.4
    Joyce Farrell,Object-Oriented Programming in C++ by ,Cengage Learning.