Advertisement
Guest User

Untitled

a guest
May 26th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. public class Main {
  2.     public static void main(String[] args) {
  3.         Libro guerraEPace = new Libro("Guerra e pace");
  4.         guerraEPace.libriInScaffale = 1;
  5.  
  6.         Libro viaColVento = new Libro("Via col vento");
  7.         viaColVento.libriInScaffale = 2;
  8.  
  9.         System.out.println(guerraEPace.libriInScaffale);
  10.         System.out.println(viaColVento.getTitolo());
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement