I understand the difference between Classes and Interfaces. What I do not understand is how they relate to automation. I have never come across a case (from my experience) where I have needed to an anywhere. Usually i just use inheritance (“extends”) in my to inherit generic(base) methods from my Base class. Could someone provide a specific example where I would actually want to implement an interface within my ? Why would this be useful? I notice a lot of interviews ask about interfaces, however i do not understand the context it has with automation. I only understand it in terms of basic programming terminology. I know that Java does not provide the capability of ‘Multiple Inheritance’ so thats why they allow to implement multiple interfaces, but in what particular case would i need to do that?



Source link https://www.reddit.com/r//comments/8s0oai/when_would_i_want_to_implement_an_interface_in/

LEAVE A REPLY

Please enter your comment!
Please enter your name here