Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Time(private[this] var h:Int){
- hour = h
- def hour:Int = h
- def hour_=(h:Int) {
- if(h < 0) this.h = 0
- else
- this.h = h
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement