The document outlines a series of programming tasks and UML diagram requirements related to object-oriented programming concepts in C++. It includes tasks for operator overloading, copy constructors, inheritance, and various UML diagrams for systems like Ticket Reservation and Library Management. Additionally, it covers topics such as virtual functions, abstract classes, and state diagrams, providing a comprehensive overview of fundamental programming principles.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
11 views1 page
OODS Question Bank
The document outlines a series of programming tasks and UML diagram requirements related to object-oriented programming concepts in C++. It includes tasks for operator overloading, copy constructors, inheritance, and various UML diagrams for systems like Ticket Reservation and Library Management. Additionally, it covers topics such as virtual functions, abstract classes, and state diagrams, providing a comprehensive overview of fundamental programming principles.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
1. Write a program to add 2 complex number using friend function and + operator.
2. Write a Program to overload = operator and explain it.
3. Write a program for copy constructor to copy a student object to another object. 4. Write a Program to overload << and >> operator and explain it. 5. Draw UML collaboration diagram for Ticket Reservation System. 6. Draw UML sequence diagram for Library Management diagram for borrowing a book. 7. List out the components of state diagram and draw a state diagram for your own situation. 8. Write a program to overload Assignment operator and discuss the similarities with copy constructor. 9. Draw UML Activity Diagram for withdrawing amount from ATM. 10. Draw UML Activity Diagram for paying the bill through some UPI for the grocery items purchased in a store. 11. Give suitable example for Sequence diagram. 12. A Book shop maintains details of books that are being sold like bookid, title, author, price. Whenever a customer gives the above details display them to the user and if they provide a discount % along with the other details mentioned above, calculate the new discounted price, and display all the details. Implement the above scenario using constructor overloading. 13. What do you mean by inheritance? Write its types. 14. Write a C++ program to create a base class vehicle with name and wheel as data members. Derive two classes LMV and HMV. Derive two classes Gear and Non-Gear Motor from LMV. The data member for each class. 15. Explain virtual function and abstract class with a suitable example. 16. What are the types of inheritance? Explain with neat diagram. 17. Write a simple program to illustrate the friend class? 18. Write a program to pass the value to the base class constructor from the derived class. (10 Marks) 19. Give a suitable example for State chart diagram.