different bodies in a class

class testmethod {
 public method te
 public method tet
 public method tee
 constructor { args } {
 } 
}

body testmethod::te {} {
  tet
  puts "aa" 
}

body testmethod::tet {} {
  puts "bb"
}

body testmethod::tee {} {
  puts "cc" 
}

testmethod .aa
.aa tee
.aa te

posted @   greencolor  阅读(114)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示