Difference between revisions of "Polymorphism"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(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...")
(No difference)

Revision as of 23:19, 15 December 2016

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