Introduction to OOP | Chapter 8: Inheritance and Substitution: | next | previous | audio | real | text |
abstract class Window { ... abstract public void paint (); // child class must redefine ... }An interface is like an abstract class in which all methods are abstract. In C++ an abstract method is called a pure virtual method.