Computer Science, asked by ayushsharma34105, 10 months ago

Write a program in java to create a class Student which contains attributes name, date_of_birth,marks_percentage and Reg_id. Provide appropriate constructor to initialize all the attributes of the Student but Reg_id must be assigned automatically only when the marks of the student is greater
than or equal to 65% .
StudentClass is a nested class with attributes roll_no and Section_name. Make sure that Student card is created only when user is a valid and if it is already created then must not be assigned the new roll number.

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
3

[tex]\ intrepid.

Student which contains attributes name, date_of_birth,marks_percentage and Reg_id. Provide appropriate constructor to initialize all the attributes of the Student but Reg_id must be assigned automatically only when the marks of the student is greater

than or equal to 65% .

StudentClass is a nested class with attributes roll_no and Section_name. Make sure that Student card is created only when user is a valid and if it is already created then must not be assigned the new roll number.

Answered by Anonymous
1

Answer:

The program is assigned aromatically created only the created new roll number....

Similar questions