Answer:
please find the attachment of the correct code:
Output:
Bob : 1234
sue : 5678
pat : 2468
please enter a name to replace with pat:
Chris
Bob : 1234
sue : 5678
Chris : 2468
Explanation:
In this code, when we create the class object, that is "stu1, stu2, and stu3" and call the parameterized constructor bypassing the "string and integer" value and print the object value you forget to call the "tostring" method because it is the only method which returns both "string and integer" value.