Object Oriented Programming Using C++ Practical Questions
List Of Practicals
- Write programs to evaluate any expression using Input / Output functions.
- Write programs using-
• Scope resolution operator • Memory management operator • Manipulators . - Write programs to demonstrate use of-
• Implicit type casting • Explicit type casting. - Write programs to show use of classes and objects to define the function inside the class.
- Write programs to define the function outside the class.
- Write programs to implement inline function.
- Write programs to implement friend function using-
• Two different classes • External function. - Write programs to implement-
• Static data member • Static member function. - Write programs to create array of objects.
- Write programs for-
• Default constructor • Parameterized constructor • Copy constructor • Multiple constructor in one class. - Write programs using-
• Single level inheritance • Multilevel inheritance. - Write programs to implement multiple inheritance.
- Write programs to implement hierarchical inheritance.
- Write programs to implement virtual base class.
- Write programs which show the use of constructors in derived class.
- Write programs to implement-
• Pointer to object • ‘this’ pointer. - Write programs for-
• Pointer to derived class in single inheritance • Pointer to derived class in multilevel inheritance. - Write programs which show the use of function overloading.
- Write program to overload unary operator using-
• Member function • Friend function. - Write programs to overload binary operator using-
• Member function • Friend function. - Write programs to implement virtual function.
- Write programs to implement pure virtual function.
- Write programs to read and write from/to file using-
• Constructor • open() - Write programs to copy the content of one file into another file using formatted input/output functions.
- Write file programs to implement sequential input and output operations on file.
- Write programs to perform input / output operations on binary files.