Advertisement
fosterbl

Store.java starter code for Online Store activity

Feb 5th, 2020
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. class ItemForSale{
  2.  
  3. }
  4.  
  5. class Movie{
  6.  
  7. }
  8.  
  9. class Book{
  10.  
  11. }
  12.  
  13. class Author{
  14.  
  15. }
  16.  
  17. public class Store{
  18.      // instance variables
  19.  
  20.    public static void main(String[] args){
  21.       Store s = new Store();
  22.       Book b = new Book();
  23.       System.out.println(b instanceof ItemForSale);
  24.    }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement