Click here to watch in Youtube :
https://www.youtube.com/watch?v=8rblic6t12A&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge
Java Tutorial : Java abstract class(Printer) |
public abstract class Printer { abstract void print();// no body and abstract } class LaserPrinter extends Printer { @Override void print() { System.out.println("Printing..."); } }
public class AbstractClassTest { public static void main(String[] args) { Printer printerRef = new LaserPrinter(); printerRef.print(); } }
Printing..
https://sites.google.com/site/javaee4321/java/AbstractClassDemo_Printer_App.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/AbstractClassDemo_Printer_App
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/4fab84407fb3cd7dfdf1a3243491a9e829c4d749/BasicJava/AbstractClassDemo_Printer_App/?at=master
See also:
No comments:
Post a Comment