Create a Student class, where attributes associated with each student are name, registration number, father name, degree and department. All attributes should not be accessed directly. One can view the details of all students. Note student attributes can not be changed by any means after initialization.In student class maintaining student count means your program could be able to tell the count of student objects created. (User static counter variable)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

Create a Student class, where attributes associated with each student are name, registration number, father name, degree and department. All attributes should not be accessed directly. One can view the details of all students. Note student attributes can not be changed by any means after initialization.In student class maintaining student count means your program could be able to tell the count of student objects created. (User static counter variable)

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
void method
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