Home > database > Try to define classes TR1 (triangle) and its derived class COL (triangle cylinder). The triangle cla
Try to define classes TR1 (triangle) and its derived class COL (triangle cylinder). The triangle cla
Time:09-30
#include using namespace std; Class TRL {private: double x, y, z;//triangle with three sides the length of the public: TRL (double x1, double y1, double z1) {x=x1; Y=y1; Z=z1; If (x + y & gt; Z) {cout & lt; <"Can constitute a triangle" & lt;