Create an object of the class, then call the method of that specific class using the objects:
class TestThis {
public static void main(String args[]) {
rectangle rec = new rectangle();
rec.parameter(length, breadth);
rec.area(length, breadth);
circle circ = new circle();
circ.area(radius);
}
But something I don't understand is the what is the work of the
class shape
.
I hope I answered your question.
Regards.