The document defines a Student1 class with integer and string fields for student number and name, a constructor to initialize the fields, and a main method that creates a Student1 object and calls its display method to print the number and name.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
26 views1 page
Student 1
The document defines a Student1 class with integer and string fields for student number and name, a constructor to initialize the fields, and a main method that creates a Student1 object and calls its display method to print the number and name.