Abstract - Virtual - Static

From TRCCompSci - AQA Computer Science
Revision as of 20:22, 16 December 2016 by QuantumFluctuator (talk | contribs) (Created page with "<h2>Static</h2> The "static" modifier means that a class cannot be instantiated, and the subroutines must instead be called directly. <h2>Abstraction</h2> The "abstract" modi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Static

The "static" modifier means that a class cannot be instantiated, and the subroutines must instead be called directly.

Abstraction

The "abstract" modifier when declaring a class means that the class contains one or more abstract subroutine, and must have one or more subclasses for implementations of abstract methods. A subclass of an abstract class that is instantiated must implement any abstract subroutines contained in the abstract class.

Virtual

A virtual method is one which is inheritable and can be overridden.