void main() {
var obj = new Circle();
obj.cal_area();
}
class Shape {
void cal_area() {
print("calling calc area defined in the Shape class");
}
}
class Circle extends Shape {}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266198.html