@@ -0,0 +1,1023 @@
+package java_problems.object_oriented_programming;%0D%0A%0D%0Aimport java.util.*;%0D%0A%0D%0A/*%0D%0A * Problem Statement:%0D%0A * In the editor we have provided the abstract Book class and a Main class. In%0D%0A * the Main class we created instance of a class called MyBook. Your task is to%0D%0A * write just the Mybook class. Your class mustn't be public.%0D%0A * %0D%0A * Sample Input:%0D%0A * A tale of two cities%0D%0A * %0D%0A * Sample Output:%0D%0A * The title is: A tale of two cities%0D%0A */%0D%0Aabstract class Book%0D%0A%7B%0D%0A   String title;%0D%0A   abstract void setTitle(String s);%0D%0A   String getTitle()%0D%0A   %7B%0D%0A      return title;%0D%0A   %7D%0D%0A   %0D%0A%7D%0D%0A%0D%0Aclass MyBook extends Book %7B%0D%0A    %0D%0A    public void setTitle(String s) %7B%0D%0A        super.title = s;%0D%0A    %7D%0D%0A%7D%0D%0A%0D%0Apublic class MyBookMain%0D%0A%7B%0D%0A   %0D%0A   public static void main(String %5B%5Dargs)%0D%0A   %7B%0D%0A      Scanner sc=new Scanner(System.in);%0D%0A      String title=sc.nextLine();%0D%0A      MyBook new_novel=new MyBook();%0D%0A      new_novel.setTitle(title);%0D%0A      System.out.println(%22The title is: %22+new_novel.getTitle());%0D%0A      sc.close();%0D%0A   %7D%0D%0A%7D

Add MyBookMain