subject

Create a class named 'Student' with String variable 'name' and integer variable 'roll_no'. Assign the value of roll_no as '2' and that of name as "John" by creating an object of the class Student.
Create a set method to change the values of both variables
Create 2 get methods to return the values of the instance variables
Create toString method with appropriate message for the user
Create ‘StudentDriver’ class and create 2 objects from Student class called ‘stu1’ and ‘stu2’
Use the needed methods to save the value “324” ,“Maryam” for the first object and “987” ,”Sara” for the second object
Use the needed method to return the name of the first object and the roll_no for the second one with appropriate message
Invoke toString method for both objects
"Help pl"

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Click the "draw structure" button to activate the drawing utility. draw two diastereomers of (1z,4r)−1,4−dimethylcyclodecene and name them, including (e)/(z) and (r)/(s) notation. part 1 out of 4 draw the diastereomer containing a chiral center with s configuration here. window open
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
question
Computers and Technology, 25.06.2019 17:00
2. name the organization that works with small businesses to them grow into successful businesses.
Answers: 1
You know the right answer?
Create a class named 'Student' with String variable 'name' and integer variable 'roll_no'. Assign...
Questions
question
Mathematics, 20.05.2021 05:20
question
Mathematics, 20.05.2021 05:20
question
Mathematics, 20.05.2021 05:20
question
Mathematics, 20.05.2021 05:20
question
Mathematics, 20.05.2021 05:20
Questions on the website: 13722363