We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Java Abstract Class
Java Abstract Class
Sort by
recency
|
207 Discussions
|
Please Login in order to post a comment
import java.util.*; abstract class Book{ String title; abstract void setTitle(String s); String getTitle(){ return title; }
} final class MyBook extends Book{ void setTitle(String title2){ this.title = title2; } } public class Main{
}
Tried this useless platform after a while and remembered why I left. Retards here never realized one is not supposed to put solution in discussion.
No one asked
public class Solution {
}
abstract class Book{ String title; abstract void setTitle(String s); String getTitle(){ return title; } }
class MyBook extends Book{ @Override void setTitle(String s){ super.title = s; } }
abstract class Book { String title;
}
class MyBook extends Book {
}
public class Solution { public static void main(String[] args) {
}
}
class MyBook extends Book{ @Override public void setTitle(String s){ this.title=s; } }