Matakuliah Tahun Versi : M0074/PROGRAMMING II : 2005 : 1/0 MATERI PENDUKUNG CLASS ABSTRACT 1 • An abstract class is a class that is incomplete, or to be considered incomplete. Only abstract classes may have abstract methods, that is, methods that are declared but not yet implemented. If a class that is not abstract contains an abstract method, then a compile-time error occurs. A class has abstract methods if any of the following is true: 2 – It explicitly contains a declaration of an abstract method. – It inherits an abstract method from its direct superclass. – A direct superinterface of the class declares or inherits a method (which is therefore necessarily abstract) and the class neither declares nor inherits a method that implements it. 3
© Copyright 2026 Paperzz