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 06:30
Selective incapacitation is a strategy to reduce prison population
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
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, 14.09.2021 08:20
question
History, 14.09.2021 08:20