Question: in java code + output correct ans only 6. Write a program to print the names of students by creating a Student class. If no

in java code + output

in java code + output correct ans only 6. Write a program

correct ans only

6. Write a program to print the names of students by creating a Student class. If no name is passed while creating an object of Student class, then the name should be "Unknown", otherwise the name should be equal to the String value passed while creating object of Student class. (Hint: use constructor overloading). 7. Create an outer class with a function display, again create another class inside the outer class named inner with a function called display and call the two functions in the main class

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 Databases Questions!