Polymorphism - 2017

From TRCCompSci - AQA Computer Science
Revision as of 14:11, 13 February 2017 by Waynesmainhoe (talk | contribs) (Created page with "Polymorphism is where a sub class inherits all the methods and properties from the parent class. However, The sub class may override the methods or properties of the parent cl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Polymorphism is where a sub class inherits all the methods and properties from the parent class. However, The sub class may override the methods or properties of the parent class, for example both The blue whale and A human are examples of a Mammal, however a classical mammal "Walk" a blue whale over rides this by "swim".