首页 > 建站教程 > 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(); 

}