编程知识 cdmana.com

How to do this? I'm not sure if it's right

Write a Triangle( triangle ) And a class Paralle( parallelogram ) class , The member variables are defined by themselves , And each has a method to solve the area and a method to solve the perimeter , Now create one in the main class Triangle Object and a Paralle The object of , And assign values to their member variables , Then output their area and perimeter respectively .( All classes are defined in different files )

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/12/20211207192329473g.html

Tags sure right
Scroll to Top