JAVA USER-DEFINED CLASS: Create a class named: Student with the following class members: Constructor Student - with no parameters, initialize all the data members to 0 or null; Data members studentNo - int name - String name-String course- String Methods Members setStudentNo - to set the student number of the student setFname - to set the firstname of the student setLname - to set the lastname of the student setCourse- to set the course of the student getStudentNo - to get the student number of the student getFname - to get the firstname of the student getLname - to get the lastname of the student getCourse - to get the course of the student

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question
100%

Java program

JAVA USER-DEFINED CLASS:
Create a class named: Student with the following class members:
Constructor
Student - with no parameters, initialize all the data members to 0 or null;
Data members
studentNo - int
fname - String
Iname-String
course- String
Methods Members
setStudentNo - to set the student number of the student
setFname - to set the firstname of the student
setLname - to set the lastname of the student
setCourse- to set the course of the student
getStudentNo - to get the student number of the student
getFname - to get the firstname of the student
getLname - to get the lastname of the student
getCourse - to get the course of the student
Note: In main menu display 2 examples each from the method members
Transcribed Image Text:JAVA USER-DEFINED CLASS: Create a class named: Student with the following class members: Constructor Student - with no parameters, initialize all the data members to 0 or null; Data members studentNo - int fname - String Iname-String course- String Methods Members setStudentNo - to set the student number of the student setFname - to set the firstname of the student setLname - to set the lastname of the student setCourse- to set the course of the student getStudentNo - to get the student number of the student getFname - to get the firstname of the student getLname - to get the lastname of the student getCourse - to get the course of the student Note: In main menu display 2 examples each from the method members
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning