OOP Lab Internal
OOP Lab Internal
Course Name: Object Oriented Programming through C++ Lab Max Time: 3 Hrs.
Branch: Information Technology Max Marks: 15M
Faculty: Mr. Netaji Gandi / Mr. B. Ch. Venkata Ramana Date: 03.02.2022
QUESTIONS
1. Implement the following:
a. Write a C++ program to create objects of DISTANCE class. Input two distances and output the
sum.
b. Write C++ program that implement Bubble sort, to sort a given list of integers in ascending order.
2. Implement the following:
a. Write a C++ program to Overload Binary operator as non-member function
b. Write a C++ Program to illustrate template class
3. Implement the following:
a. Write a C++ Programs to Multiple Inheritance and Multi-level inheritance
b. Write a C++ Program to illustrate member function templates.
4. Implement the following:
a. Write a C++ program for illustrating function overloading in adding the distance between objects
(use the Distance class problem)
b. Write a C++ program to Overload Unary operator as member function.
5. Implement the following:
a. Write a C++ program to illustrate member function templates
b. Write a C++ program to implement the overloading assignment = operator
6. Implement the following:
a. Write a C++ program to illustrate the use of Constructors and Destructors (use the Distance class
problem)
b. Write a C++ program that implement Bubble sort, to sort a given list of integers in ascending
order.
VIGNAN’S INSTITUTE OF ENGINEERING FOR WOMEN
Accredited by NBA (EEE, ECE, CSE & IT)
Kapujaggarajupeta, VSEZ (POST), Visakhapatnam-530049