CS 3304: Comparative Languages
Object-Oriented Programming
[
Course Documents
] : [
Object-Oriented Programming
]
Previous
Contents
Next
Keyword Index
Virtual Methods
Polymorphism in OOPLs is typically implemented via
dynamic binding
Some OOPLs allow some methods to be statically bound
A method that can be dynamically bound is called a
virtual method
An
abstract
(pure virtual) method is one that does not include definition (it only defines a protocol)
An abstract class is one that includes at least one abstract method
An abstract class cannot be instantiated