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, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
You know the right answer?
Create a class named 'Student' with String variable 'name' and integer variable 'roll_no'. Assign...
Questions
question
Mathematics, 05.10.2019 17:00
question
English, 05.10.2019 17:00
question
Biology, 05.10.2019 17:00
question
Mathematics, 05.10.2019 17:00
Questions on the website: 13722360