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 04:00
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
You know the right answer?
Create a class named 'Student' with String variable 'name' and integer variable 'roll_no'. Assign...
Questions
question
Biology, 20.10.2019 01:50
Questions on the website: 13722367