Question: Add an overload constructor to the program below. Instantiate an objectthat uses that overloaded constructor in the main method. public class Student { private String

Add an overload constructor to the program below. Instantiate an objectthat uses that overloaded constructor in the main method. public class Student { private String name; private int age; public Student() { name = "No name yet."; age = 0; } public Student(String name, int age) { this.name = name; this.age = age; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!