- Discuss about polymorphism and how it is achieved at compile time and run time.
- What is function polymorphism.
- What is operator overloading?What are the rules for overloading operators.
- What are the limitation of overloaded operator functions.Write a program in c++ to overload unary operator using friend function.
- What is parametric overloading.
- Define and explain virtual function.What are rules for virtual function.
- What is pure virtual function.Why do you need them and how they defined.
- What do you mean by dynamic binding?how it is useful in OOP.
- Compare assignment andf initialization.
- Define a class to represent distance in feetand inch.Write a c++ program to add two distance object taken from keyboard.use operator overloading.
- Write a program in c++ using class to add two distance entered in feet and inches and store the result in third distance.pass two distances as argument to a function and the function should return the added distanc e.use required constructor and destructor.
- create a class callled distance containg data members,meter,centimeter and milimeter.overload unary operator ++ and --relative to distance class using member function.write a program to include this class and display the result of ++ and -- operation.
- Write a program to read and write a complex numberp where p=a+ib.Here a is the real part of a complex number and b is the imaginary part of the complex number and i is a square root of -1.
- Write a class description for complex numbers.Write methods for addition,subtraction and multiplication of complex number.
- Overload = = , +,++ operator.
- Write a program in C++ to overload a function AREA() to calculate the area of triangle,square and rectanle.
Tuesday, January 19, 2010
Revision 3
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment