Re: PHP Classes For Beginners Polymorphisms
“The occurrence of different forms, stages, or types in individual organisms or in organisms of the same species, independent of sexual variations.” (dictionary.com). By that definition, we could assume polymorphism is a programmatic way to represent the same object through multiple states or stages. That’s great, but probably still unclear to many of us. What it really means is this: programming to an interface or base class without regard to an object’s concrete class.
__________________ Thanks & Regards, Jegan CBK "We will either find a way, or make one!” |