Stan: Hello World!

If my new born son Stan follows in his Dad’s footsteps, and assuming Object Orientated Programming will still be of use in 18 years time, he might appreciate this bit of geekery. I’m sure I’m not the first to do it, but as I thought it up without seeing it before, I’m pleased with it :-)

class Stan extends Greg, Becky {
   // Constructor
   function Stan () {
      print "Hello World!";
      print "I was born at... 1247991540";
   }
}

It’s already been a huge pleasure getting to know you Stan, can’t wait to do more of it :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>