Blogger

Delete comment from: Javarevisited

Anonymous said...

Great article. I find every point in your articles worth noting. I have never written unit tests myself. I have a little knowledge about it. So I have a doubt here: why can't we mock a parent class? if class B extends A why can't we create a mock of A like we mock any class using Mockito?

Jan 31, 2020, 12:52:35 AM


Posted to Difference between Inheritance and Composition in Java and Object Oriented Programming

Google apps
Main menu