Polymorphism

From TRCCompSci - AQA Computer Science
Revision as of 23:19, 15 December 2016 by QuantumFluctuator (talk | contribs) (Created page with "Polymorphism is the term to describe inheritance trees of objects. A class can inherit subroutines from other classes, and can even overwrite them with its own iterations of t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Polymorphism is the term to describe inheritance trees of objects. A class can inherit subroutines from other classes, and can even overwrite them with its own iterations of them. This is done using ":" when declaring a class.

Syntax Example

File:Inheritance example.png