overriding implemented base class methods
        Posted  
        
            by 
                user793468
            
        on Programmers
        
        See other posts from Programmers
        
            or by user793468
        
        
        
        Published on 2014-05-13T02:03:13Z
        Indexed on 
            2014/06/12
            3:49 UTC
        
        
        Read the original article
        Hit count: 317
        
I read somewhere that the chain of inheritance breaks when you alter a behavior from derived class. What does "altering a behavior" mean here? Is overriding an already implemented method in base class considered as "altering behavior"? Or, does the author mean altering method signatures and the output?
Also, I ready Duplicating code is not a good practice, and its a maintenance nightmare. Again, does overriding an already implemented method in base class considered "Duplicating code"? If not, what would be considered as "Duplicating code"? I
© Programmers or respective owner