public class MainClass { // main is the entry point of the program public static void main(String[] args) { Person p; // to create an object of type Person // (to instantiate the Person class), // call the class constructor p = new Person(); // Person() is the default constructor // automatically available if no other // constructor has been written. p.speak(); // Create a person with a given name and age Person p2 = new Person("Do", 25); p2.speak(); } }