Use the concept of constructor override in C++ and create a class

0 votes
asked Jul 7, 2019 by anonymous
Use the concept of constructor override in C++ and create a class, which calculates areas of square, rectangle and a triangle. Override of the constructor should be controlled using the number of variables used for the object initialization. Feel free to use the method override in the same class. In the main function you should demonstrate examples for all three cases of the shapes.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...