Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Connecting Classes?

+13 votes
asked May 26, 2021 by no pls no (210 points)

Help, I'm new with Java and I get the feeling that I'm overlooking something which isn't that hard.

https://onlinegdb.com/Wmp1-b_N-

I need to do an evaluation where a list of all students gets shown in the main function, which should still be easy if I define my classes and constructors. But I don't get how I can do an evaluation of the performance of every student. I have a class and constructor for the performance, but I don't know how I can connect said class with the student class to get to my preferred goal. Is there some command I'm forgetting about?

Furthermore I have to print a tabular performance - scheme for every student,...

...where the average performance in percent (in Credit Points) of all passed examinations get shown

...where the number of CPs of all passed examinations get shown

...where the number of failed examinations get shown

How do I APPROACH this? No solution (obviously) just hints, because I don't get it.

1 Answer

+1 vote
answered Sep 9, 2023 by AmritaB (200 points)
Hint: Use inheritance
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...