You are viewing a single comment's thread. Return to all comments →
java
class MyBook extends Book{ int price; MyBook(String title, String author, int price){ super(title, author); this.price = price; } @Override void display(){ System.out.println("Title: "+super.title); System.out.println("Author: "+super.author); System.out.println("Price: "+ price); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 13: Abstract Classes
You are viewing a single comment's thread. Return to all comments →
java