+ 1
what's wrong in the codes
why i m unable to implement Deny plz explain. i would appreciate any help https://code.sololearn.com/cK4TGzCj6Ew1/?ref=app
3 Antworten
+ 4
1st thing that came to my mind: don't implement to a class but implement to an interface instead.
+ 2
can u plz modify my code because i m unable to understand what you are saying. it would be helpful if u do.
+ 1
First your method signatures do not match.
void hello(); and void hello(int a);
So you are implementing a class without implementing its methods. You need to add int a param to the interface method.
Second you must declare void hello(int a) in West to be public as all methods in an interface are public.