• CapeWearingAeroplane@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    7 个月前

    Well yes, I get the differerence between an interface and a class, and what I write is typically a class, which contains properties and functionality that may or may not be overridden in derived classes.

    For example, calling a parent class implementation can be useful when I have a derived model that needs to validate its input in some specific way, but otherwise does the same as the base class.

    What I don’t understand is why this makes OOP bad?