Download presentation
Presentation is loading. Please wait.
1
1 MATERI PENDUKUNG CLASS ABSTRACT Matakuliah: M0074/PROGRAMMING II Tahun: 2005 Versi: 1/0
2
2 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:
3
3 –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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.