Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class Main {
  2. public static void main(String[] args) {
  3. Dog fido = new Dog("Fido", "Terrier", 4);
  4. System.out.println(fido.name + " is a " + fido.breed + " and is " + fido.age + " years old.");
  5. // => Fido is a Terrier and is 4 years old.
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement