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