Greg Gannicott’s Blog


Stan: Hello World!

Posted in Personal by Greg Gannicott on July 20, 2009

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 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: