Thought for the Dazed

I've had to give up that Distance Learning course as I was having trouble seeing the teacher.

Flickr
www.flickr.com
RobMiles' items Go to RobMiles' photostream
Twitter
C# Yellow Book

Search entire site
« eZ430 Chronos Wireless Watch | Main | Cottingham Lights 2009 »
Tuesday
Nov242009

So Much for the Second Year

4132531573

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.

Reader Comments (1)

Surely you counter that claim with the fact that it depends on the metadata. It could have been in Mars years, or months on Saturn :p
November 25, 2009 | Unregistered CommenterSiG

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.