Git Product home page Git Product logo

Comments (3)

LiamLzy avatar LiamLzy commented on July 23, 2024

@lihuiqiang123 @TanJiaJunBeyond 其实是有区别的,open val 可以被重载,但是是只读属性,举个例子:

open class Father {
    open val test: String = "test"
}

class Son {
    override val test: String
        get() = "son"
}

回到项目中,虽然属性本身不能被改变,但是子类可以重载,也是符合开闭原则的。

from androidgenericframework.

lihuiqiang123 avatar lihuiqiang123 commented on July 23, 2024

好的 学习了 谢谢

from androidgenericframework.

lihuiqiang123 avatar lihuiqiang123 commented on July 23, 2024

@LiamLzy 这个项目你跑了吗 登录有问题吗?我这跑起来 换了自己的GitHub账号登录失败

from androidgenericframework.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.