Work1: Class and Object
Create 3 classes following:
1.
Circle class
Property: radial
Method: calculate area
2.
Triangle class
Properties: base, high
Method: calculate area
3.
S
quare
class
Properties: width, long
Method: calculate area
Then create new object of these classes and show the area and values of each object such as:
Square s = new Square(10,10);
...
......
Result: >> width: 10, long: 10, area: 20