You are viewing a single comment's thread. Return to all comments →
class MyBook extends Book{ private int price; MyBook(String title,String author,int price){ super(title,author); this.price = price; } void display(){ System.out.println("Title: "+super.title); System.out.println("Author: "+super.author); System.out.println("Title: "+this.price); } }
Why it is not working for me?. What is the issue in this?
Seems like cookies are disabled on this browser, please enable them to open this website
Abstract Classes
You are viewing a single comment's thread. Return to all comments →
Why it is not working for me?. What is the issue in this?