But still one question in my mind why to redeclare a function again in the class which implements an interface ?(Duplication)
What are interfaces?
Abhishek Sangwan

in interfaces methods doesnt have a body just a prototype, the body are declared in classe implementing them, image u have an interface with a method public void login(username, password), well u can implement it in 2 classes LoginViaDatabase and LoginViaCloud and both will have the login method but not the same code in login method body

Like what you read? Give Dia Mamadou a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.