So Much for the Second Year
/I was doing a lecture on our Software Engineering course today. We were talking about UML (Unified Modeling Language) and how to map language specific features (for example C# properties) onto UML diagrams (if you want to find out more about this you can go here for some useful ideas).
Anyhoo, I thought it would be a good idea to show an example of a property in action so I wrote some C# on the board:
Rob.Age = 21;
The idea was to start an instructive discussion about the difference between fields and properties in C# objects. I asked the class to consider the statement and comment on it. A hand at the back shot up. “What do you think the statement means?” I asked. The reply came straight back “That you’re a liar”.
Thanks for that.