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
Evolution of C++ from C
- 1.2
Key differences between C and C++
- 1.3
Structure of a C++ program
- 1.4
Basic I/O operations (Cin, Cout)
- 1.5
Introduction to OOP concepts: Class, Object, Abstraction, Encapsulation, Inheritance, Polymorphism
2Classes and Objects (7 hrs)
- 2.1
Defining classes and creating objects
- 2.2
Access specifiers: public, private, protected
- 2.3
Namespace
- 2.4
Scope resolution operator
- 2.5
Member functions (inside and outside class)
- 2.6
Inline function
- 2.7
Storage classes: (automatic, external, static, register)
- 2.8
Static data members and functions
- 2.9
This pointer
- 2.10
Constructors and destructors
- 2.11
Types of constructor (default, parameterized)
- 2.12
Dynamic constructor
- 2.13
Copy constructor
- 2.14
Constructor overloading
- 2.15
Manipulating private data members
3Operator Overloading and Type Conversion (7 hrs)
- 3.1
Introduction to operator overloading
- 3.2
Overloading unary and binary operators
- 3.3
Friend functions
- 3.4
Friend class
- 3.5
Type conversion: Basic-to-class, Class-to-basic, Class-to-class
4Inheritance (7 hrs)
- 4.1
Base class and Derived class
- 4.2
Concept and types of inheritance
- 4.3
Constructors and destructors in inheritance
- 4.4
Ambiguity and virtual base classes
- 4.5
Object slicing
5Polymorphism and Virtual Functions (7 hrs)
- 5.1
Function overloading
- 5.2
Function overriding
- 5.3
Pointers to objects
- 5.4
Virtual functions and late binding
- 5.5
Pure virtual functions and abstract classes
6Templates and Exception Handling (7 hrs)
- 6.1
Function templates and class templates
- 6.2
Use of templates
- 6.3
Exception handling basics: Try, throw, catch blocks
- 6.4
Multiple catch blocks and nested try
- 6.5
Purpose of exceptional handling
7File Handling in C++ (7 hrs)
- 7.1
File streams (ifstream, ofstream, fstream)
- 7.2
Reading from and writing to files/console
- 7.3
File modes
- 7.4
Binary and text file operations
- 7.5
Command line arguments
- 7.6
File pointer and their manipulator: specifying the position, specifying the objects, tellg(), seekg(), tellp(), seekp()
8Practical Works
- 8.1
Creating classes and objects
- 8.2
Implementing inheritance and polymorphism
- 8.3
Using file I/O operations
- 8.4
Building small projects such as a student record system, inventory management, or banking application
9Course Description Notes
10Course Objectives
- 10.1
Understand the fundamentals of object-oriented programming.
- 10.2
Use C++ syntax and semantics to write efficient object-oriented programs.
- 10.3
Implement key OOP concepts like classes, inheritance, polymorphism, and abstraction.
- 10.4
Apply exception handling and file operations in real-world problems.
- 10.5
Develop reusable and maintainable software systems.
11Reference Books
- 11.1
E. Balagurusamy, Object-Oriented Programming with C++, Tata McGraw-Hill publication.
- 11.2
Herbert Schildt, C++: The Complete Reference , Tata McGraw Hill publication.
- 11.3
Robert Lafore ,Programming in C++ , SAMS Publication.
- 11.4
Joyce Farrell,Object-Oriented Programming in C++ by ,Cengage Learning.