Test 1
Test 1
4. For a ready made class called Student with attributes: name as String,
age as integer, RegNo as String; write a statement to create an
object for this class and assign values to its attributes.
6. Write a DO-WHILE loop statement which will receive user input and
write it back to screen until the value -1 is specified by the user
8. What are accessors and mutators? What are the uses and advantages
of accessors and mutators