Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 classStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started