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 @ 2011-08-18 09:25  greencolor  阅读(111)  评论(0编辑  收藏  举报