Refactored all solutions

This commit is contained in:
rshaghoulian
2017-04-05 18:42:35 -05:00
parent 5f4c2f4a78
commit decc8e791e
135 changed files with 848 additions and 849 deletions
@@ -21,12 +21,12 @@ class MyBook extends Book {
public class Main {
public static void main(String []args) {
//Book new_novel=new Book(); This line prHMain.java:25: error: Book is abstract; cannot be instantiated
// Book new_novel=new Book(); This line prHMain.java:25: error: Book is abstract; cannot be instantiated
Scanner sc = new Scanner(System.in);
String title = sc.nextLine();
MyBook new_novel = new MyBook();
new_novel.setTitle(title);
System.out.println("The title is: "+ new_novel.getTitle());
System.out.println("The title is: " + new_novel.getTitle());
sc.close();
}
}