Difference between revisions of "Abstract - Virtual - Static"
(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...") |
(No difference)
|
Revision as of 20:22, 16 December 2016
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.