What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-20 10:00:07
Overload the default constructor to take a parameter for each attribute and set it
class StudentData { private int stuID; private String stuName; private int stuAge; StudentData() { //Default constructor stuID = 100; stuName = "New Student"; stuAge = 18; } StudentData(int num1, ... Add solution