// // Read text till P.389 - how to create a default constructor // import java.util.Scanner; public class Dog { // instance variables private String name, breed; private int age; // Default constructor: no parameters, no type, same name as class public Dog() { name = "Balto"; breed = "Bog boy"; age = 4; } // general constructors: with parameters public Dog(String n, String b, int a) { name = n; breed = b; age = a; } public void set(String n, String b, int a) { name = n; breed = b; age = a; } // methods public void Lines(int n) { int i; for(i=0; i