Assignment #1 OOP
Assignment #1 OOP
Assignment - 01
Please Remember:
Q.1. Write a C++ program for the given tasks comprising friend functions and friend classes.
Q.2. Write the C++ Code for each of the following Program.
b. Geometry Calculator:
• Design classes for different geometric shapes (e.g., Circle, Rectangle, Triangle) with
attributes like dimensions, area, perimeter, etc.
• Write member functions to calculate area and perimeter for each shape and display shape
details.
• Create objects of the geometric shape classes and calculate area and perimeter for various
shapes.