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
|
206 Discussions
|
Please Login in order to post a comment
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.
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; } }