Thursday, June 26, 2008

Object oriented programming(OOP) using C++

Prerequisite
Good knowledge of C Programming.
Introduction
A basic C++ program. New keywords and data types.
Classes and Objects
Structures and classes, Constructors and destructors, Parameterized constructors, Inline function, Static member variables. Scope resolution operator, Objects and functions, Nested and local classes.
Arrays, pointers, references, dynamic allocation
Array of objects, Pointer to derived class object, pointer to class member. References, Independent references, Dynamic memory allocation, nothrow.
Overloading, Copy constructor and default arguments
Function overloading, overloading constructors, Copy constructor. History of ‘overload’ keyword, default arguments, Function overloading and ambiguity.
Operator overloading
Creating member operator functions, Prefix and postfix operators, Operator overloading using friend functions, Overloading new, delete, [], (), -> and comma operators.
Inheritance
Base class access control, Inheriting multiple base classes, Passing parameter to base class constructor. Granting access, Virtual base class.
Virtual function and polymorphism
Early binding and late binding, calling virtual function using base class reference, Abstract class and pure virtual functions.
Templates
Generic programming. Template classes and functions.
Exception handling
Throw and catch. Re-throwing exceptions, terminate() and unexpected() handlers, exception class.
Input and output
Streams and Formatted IO.
File handling
File streams, reading and writing operations, Random and sequential access.
Real time ID and casting
RTTI and Casting.
Miscellaneous
Namespaces, constant and volatile, Introduction to STL.

No comments: