+ 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

24th Apr 2017, 11:46 AM
shobhit
shobhit - avatar
3 Antworten
+ 4
1st thing that came to my mind: don't implement to a class but implement to an interface instead.
24th Apr 2017, 11:51 AM
Thanh Le
Thanh Le - avatar
+ 2
can u plz modify my code because i m unable to understand what you are saying. it would be helpful if u do.
24th Apr 2017, 12:04 PM
shobhit
shobhit - avatar
+ 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.
25th Oct 2017, 4:44 AM
Prasanna Shiwakoti
Prasanna Shiwakoti - avatar