Fun with Object Oriented Software Development
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.