Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ItemForSale{
- }
- class Movie{
- }
- class Book{
- }
- class Author{
- }
- public class Store{
- // instance variables
- public static void main(String[] args){
- Store s = new Store();
- Book b = new Book();
- System.out.println(b instanceof ItemForSale);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement