Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If we have one interface and having 3 methods in it and we have also implemented the body of these 3 methods in the class implementing it.So can we use only 2 methods out of these 3 methods.Is it possible?
Posted

You don't have to use them all, but you DO have to implement them all.
 
Share this answer
 
Yes definitely,
But you should have to implement all of those.
Just put the method name, and put blank {}.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900