我爱模板网 > 建站教程 > dart >  Dart编程实例 - Object正文

Dart编程实例 - Object

Dart编程实例 - Object

class Student { 

   void test_method() { 

      print("This is a  test method"); 

   } 



   void test_method1() { 

      print("This is a  test method1"); 

   } 

}  

void main()    { 

   Student s1 = new Student(); 

   s1.test_method(); 

   s1.test_method1(); 

}


部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!
上一篇:Dart编程实例 - 级联操作符 (..) 下一篇:Dart编程实例 - Super 关键字
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
选择头像:
最新评论

猜你喜欢