Maracuja's Home Page (^__^ x)

polymorphism

by David on 31st August 2007

finally got to use polymorphism on a project. it's quite nice i've got a group of related quiz-like objects that all have a varied style of question and answer format whilst all sharing a common header so i've been able to subclass the answer saving and score reporting.



only thing is it's php4 so i can't chain the functions to together i have to create dummy variables all over the shop to get at the sub-objects and now it's friday afternoon and i've gorra headache.



anyway it's works and it's an elegant solution as far as i'm aware



... who the hell i'm i talking to exactly - blogs are like confessions of a psychotic i tell thee

1 Comment(s)

John said, "Did you use like a random word generator to write that?!"

Make a Comment