class Counter byte n public method both() self.n = self.n + 1 self.tick() end method public method tick() self.n = self.n + 1 return end method end class program calls end program