void main() {
var obj = new Leaf();
obj.str = "hello";
print(obj.str);
}
class Root {
String str;
}
class Child extends Root {}
class Leaf extends Child {}
//indirectly inherits from Root by virtue of inheritance
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266199.html