0
Розглядається

Why is this refactoring tip a good thing?

Matheus Gomes 4 роки тому оновлено Alexander 4 роки тому 1

Image 806

I don't get it, if we create a subclass, doesn't make it longer and more difficult to read and understand? What's the benefit?

+1
Розглядається

Hi Matheus!

Yeah, I agree that this slide is not very informative. Please follow the course further, once you reach the Extract Subclass refactoring there will be an expanded example that explains this in detail.