MTS ..... Muhammad Tahir Shahzad, B.C.S Honours [ 2000-04 ], G.C. University Lahore formerly Government College Lahore, Pakistan. All the Programs, Projects and Games in C++, C, Visual C++, Visual Basic, Java and Assembly Language are written by MTS. This new interface of the web site is exclusively designed by MTS. This web site is uploaded on two servers at the same time. The url "www.mts-home.cjb.net" is a redirection url of [ http://mtshome.sw3solutions.com ] and the url "www.mtshome.cjb.net" is a redirection url of [ www.geocities.com/mtahirshahzad ]. Please send your Comments and Suggestions about the website to MTS at mts_home@hotmail.com.
MTS-HOME
C++  :::  OBJECT ORIENTED PROGRAMMING
Home
C
C++
Java
Games
Projects
Libraries
Visual C++
Visual Basic
Visual Prolog
Assembly Language
About
Utilities
Feedback
Links Exchange
Add To Favorites
Make Your Homepage
This section C++ : Object Oriented Programming contains source codes of Programs implementing Object Oriented concepts in C++. Classes and Objects are the most important features of C++. Try to make a grip on these features.

Select one of the Topics listed below:
Structures
Classes
Inheritance - Containership
Virtual Functions - Polymorphism
Operator Overloading - Type Casting
Friend Classes - Friend Functions
Template Classes - Template Functions
File Processing - Command Line Arguments
Miscellaneous Programs
Note:
All the given files are in zip format, which can be uncompressed with the help of a compression tool. If you do not have any tool, then you can get one from Utilities : Compression Tools.
Structures
CPP-077 A C++ Program to illustrate an example of structures.
CPP-078 A C++ Program to illustrate passing structures to function.
CPP-079 A C++ Program to illustrate pointers, structure and passing structure pointers to function.
CPP-080 A C++ Program to illustrate pointers and an array of structure.
CPP-081 A C++ Program to illustrate the relationship b/w union and structure.
CPP-082 A C++ Program to illustrate an array of structure.
CPP-083 A C++ Program to illustrate the use of nested structures.
CPP-084 A C++ Program to illustrate self-referential structures i.e. Linked List.
Classes
CPP-085 A C++ Program to illustrate classes with inline functions.
CPP-086 A C++ Program to illustrate classes with functions which are not inline.
CPP-087 A C++ Program to illustrate the role of constructor in classes.
CPP-088 A C++ Program to illustrate the passing of values to constructor in classes.
CPP-089 A C++ Program to illustrate the overloading of constructors in classes.
CPP-090 A C++ Program to illustrate the role of destructor in classes.
CPP-091 A C++ Program to illustrate static class data.
CPP-092 A C++ Program to illustrate static member functions.
CPP-093 A C++ Program to illustrate constant objects and constant member functions.
CPP-094 A C++ Program to illustrate strings as member of classes.
CPP-095 A C++ Program to illustrate use of arrays as data items in classes.
CPP-096 A C++ Program to illustrate array of objects in classes.
CPP-097 A C++ Program to illustrate the use of pointer 'this' using header file "THIS.h".
CPP-098 A C++ Program to illustrate object initialization and assignment by default member wise copy.
Inheritance - Containership
CPP-099 A C++ Program to illustrate an example of Inheritance.
CPP-100 A C++ Program to illustrate over-riding of base class member function in a derived class.
CPP-101 A C++ Program to illustrate the difference among public, protected and private inheritance.
CPP-102 A C++ Program to illustrate the multi-level inheritance.
CPP-103 A C++ Program to illustrate multiple inheritance.
CPP-104 A C++ Program to illustrate an example of containership.
Virtual Functions - Polymorphism
CPP-105 A C++ Program to illustrate an example of Polymorphism.
CPP-106 A C++ Program to illustrate an example of Polymorphism. [ Pure Virtual functions ]
Operator Overloading - Type Casting
CPP-107 A C++ Program to illustrate unary operator [ increment operator ++ ] overloading. [ without return type ]
CPP-108 A C++ Program to illustrate unary operator [ increment operator ++ ] overloading. [ with return type ]
CPP-109 A C++ Program to illustrate the binary operator [ + ] overloading. [ by creating a new object ]
CPP-110 A C++ Program to illustrate operator overloading in strings.
CPP-111 A C++ Program to illusrate comparision operator [ < ] overloading.
CPP-112 A C++ Program to illustrate unary operator [ decrement operator -- ] overloading. [ without return type ]
CPP-113 A C++ Program to illustrate unary operator [decrement operator --] overloading. [ with return type ]
CPP-114 A C++ Program to illustrate the binary operator [ - ] overloading. [ by creating an object of that class ]
CPP-115 A C++ Program to illustrate the binary operator [ + ] overloading. [ without creating a new object ]
CPP-116 A C++ Program to illustrate the binary operator [ - ] overloading. [ without creating an object of that class ]
CPP-117 A C++ Program to illustrate the binary operator [ * ] overloading. [ without creating a new object ]
CPP-118 A C++ Program to illusrate the use of stream insertion [ >> ] and extraction [ << ] operators.
CPP-119 A C++ Program to illusrate data conversion between built-in data types.
CPP-120 A C++ Program to illusrate data conversion between built-in data types and user defined data types [ int & float ].
CPP-121 A C++ Program to illusrate data conversion between built-in data types and user defined data types [char].
CPP-122 A C++ Program to illusrate data conversion user defined data types using functions.
CPP-123 A C++ Program to illusrate data conversion user defined data types using constructor.
Friend Classes - Friend Functions
CPP-124 A C++ Program to illusrate the use of friend functions.
CPP-125 A C++ Program to illustrate the use of friend classes.
Template Classes - Template Functions
CPP-126 A C++ Program to interchange the values of two int, float and char using function templates.
CPP-127 A C++ Program to illustrate template classes.
File Processing - Command Line Arguments
CPP-131 A C++ Program to illustrate printing data on the printer.
Miscellaneous Programs
CPP-133 A C++ Program to find number of days b/w two given dates.
CPP-138 A C++ Program to capitilaize the first charcter of every word in a string.
CPP-141 A C++ Program to copy 'n' number of characters from one string to another at position 'p'.
CPP-142 A C++ Program to check whether a word is palindrome or not. [ using classes & pointers ]
CPP-152 A C++ Program to show the simulation of Solar System.
CPP-153 A C++ Program to implement Add and Subtract functions on Big Number Class.
[ Home | C | C++ | Java | Visual Prolog | Games | Projects | Libraries | Visual C++ | Visual Basic | Assembly Language | About Me ]
  Copyright © 2000-2005
  Muhammad Tahir Shahzad
Recomended Browsers:
Internet Explorer 5.0+
Recomended Resolution:
800x600*
Report a Dead Link or Bug to MTS:
mts_home@hotmail.com