5Polymorphism, Abstraction and Encapsulation (3T+3P)
Describe Virtual function.
Describe the Pure virtual function.
Describe the Abstract class.
Demonstrate early binding (Compile time polymorphism) and late binding (runtime polymorphism).
Introduction to Virtual Function
Pure Virtual function
Abstract Class
Runtime Polymorphism and Compile time Polymorphism
Implementation of encapsulation
Practical Works: Create virtual function; create pure virtual function; create Abstract class; write program to compare different types of polymorphism
6Operator Overloading (4T+6P)
Apply Binary operator and unary operator overloading.
Practical Works: Overload unary, relational and arithmetic operators; apply data conversion techniques
7Namespace, Template and Exception Handling (4T+6P)
Explain concept of template.
Demonstrate namespace creation and use of it in programs.
Define function template and class template.
Apply the different exception handling methods.
Namespace Concept, creation and usage in programs
Concept of Template
Function Template
Class Template
Basics of exception handling
Exception handling mechanism: throw, catch and try
Exception handling of basic types and user-defined types
Practical Works: Create and apply namespace; create and apply function template; create and apply template class; apply try/catch/throw for exception handling
8File Handling (3T+3P)
Explain concept of files.
Demonstrate stream classes.
Demonstrate sequential and random access to file.
Introduction to file stream
fstream, ofstream and ifstream classes
Using constructor to open file
File opening modes in C++
Using open function to open file
Sequential and Random access to file
Practical Works: Apply fstream, ifstream, ofstream classes to manipulate files; access files sequentially and randomly