Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main {
- public static void main(String[] args) {
- Dog fido = new Dog("Fido", "Terrier", 4);
- System.out.println(fido.name + " is a " + fido.breed + " and is " + fido.age + " years old.");
- // => Fido is a Terrier and is 4 years old.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement