Wednesday, July 11, 2012

Schoolin'

There's only so much detail I can stuff into my head, so the upcoming midterm for my summer class had me stressed out.  I reviewed til my eyes glazed over and wasn't nearly done when it was time to take the test.  The test was open book and open php.net webpage, but there's open book and there's open book.  This was of the former kind, thankfully.  There were no gotcha questions, except for this one:

What does the keyword 'final' mean? 

I know Java has a 'final' keyword, but I don't remember talking about it for PHP.  I looked it up in the index of the text - not there.  So I chose the answer that involved error message.  But it seemed like a logical thing to have for this rapidly evolving object-oriented language, so I checked php.net.  Yup, as of php 5.0 there is a 'final' keyword that means essentially the same thing as in Java.  Moral:  check your php.net.

No comments:

Post a Comment