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

CSDN Q & A 2022-01-15 02:37:39

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 )


thank
Similar articles

2022-01-15

2022-01-15