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.

function is incorrect?!

+5 votes
asked Apr 17 by לויט יהודה רובי (460 points)
https://onlinegdb.com/dOOZhcvFO

as much as I know, the function should work.

but he tells me I have a problem with two functions, and I don't know which.

1 Answer

0 votes
answered Apr 18 by Peter Minarik (63,340 points)
public eQualification setHour(int hour){

You should tell the compiler which enum you want to return, not just that you want to return an enum.

There are more errors. I'll leave you to fix them as one can learn heaps from fixing mistakes. Ask again if you get stuck.

Good luck!

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.
...