//************************************** // Name: Abstract Method in Java Demonstration // Description:A very simple program that I wrote using Java to demonstrate how to use Abstract Method. I am using Netbeans in writing this simple program as my IDE. I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work and web development work kindly contact me in the following email address for further details. Thank you. My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675. // By: Jake R. Pomperada // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** AbstractExample.java package oop_java; /** * NetBeans IDE 8.2 * @author Mr. Jake R. Pomperada * March 30, 2018 Friday * Bacolod City, Negros Occidental */ abstract class Books{ //create an abstract class abstract void read(); //create an abstract method } class eBooks extends Books{ //extend the parent class void read() { //override the abstract method System.out.println("Abstract Method in Java Demonstration"); System.out.println("\n"); System.out.println("Overrides the abstract method !!!"); System.out.println("I am just reading my favorite book."); System.out.println("\n"); } } public class AbstractExample { public static void main(String[] args){ eBooks MyBook =new eBooks(); MyBook.read(); } }