How to create a c# program that calculates the areas of different shapes such as rectangle, circle, square? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create a c# program that calculates the areas of different shapes such as rectangle, circle, square?

your help will be highly appreciated

30th Sep 2017, 2:18 PM
sunny chauhan
sunny chauhan - avatar
1 Answer
+ 1
Model each shape as a subclass of Shape and implement a .size method to each. How you calculate the sizes is more geometry than programming.
30th Sep 2017, 8:01 PM
1of3
1of3 - avatar