β β β β
Q1) β Write a C++ program that creates a class and to perform swapping of two numbers without using third variable.
-
See the Output π₯
-
See the Output π₯
Q3) β Write a C++ program that reads two Matrices (2D array) using constructor and perform multiplication operation.
-
See the Output π₯
Q4) β Write a C++ program to create the Person class. Create some objects of this class (by taking the information from the user). Inherit the class Person to create two classes Teacher and Student. Maintain the respective information in the classes and create, display and delete objects of these two classes (Use Runtime Polymorphism).
-
See the Output π₯
Q5) β Write a C++ program to create a class triangle. Include overloaded functions for calculating area. Overload assignment operator and equality operator.
-
See the Output π₯
- Stuck at any question?
- Confusions regarding any solution provided?
- Want to discuss something regarding above topics?
- Want to connect with other students?
β β β β