0
Plz anyone fix the error
3 Answers
+ 2
Do what compiler tells you to do
1) remove extra qualification "EVEN::" on member "getout ()"
2) make getin () and getout () public.
https://code.sololearn.com/c3F8bP58aVm8/?ref=app
+ 1
Why not organize your class methods inside the class declaration? A tidy code is always easier to read.
The extra qualification Even:: is used only if you are defining the method outside the class Even, like what you did in getin(). But as I said, it is messy code.
Also, if getout() is supposed to be private, then you should not be calling it in main(). Use the public function getin() to call it instead.
See the comment I made in your code.
0
Arsenic thx bro đ„