posted by
bugshaw at 06:24pm on 05/11/2005
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Typing up my student's lecture notes this evening (Java objects and classes), I found the following come out onto the page:
mum is an object of the Parent class; son is an object of the Child class.
The mum object sends a message “Pull up your socks” to the son object, who performs the pullUpSox() method. son’s socks are private to him – mum cannot access his socks directly.
Well, it made me laugh.
mum is an object of the Parent class; son is an object of the Child class.
The mum object sends a message “Pull up your socks” to the son object, who performs the pullUpSox() method. son’s socks are private to him – mum cannot access his socks directly.
Well, it made me laugh.
There are 4 comments on this entry. (Reply.)