Giter Site home page Giter Site logo

Comments (2)

matyb avatar matyb commented on September 23, 2024

Yeah - that's a quirky lesson, it needs some polishing I'm afraid. I rewrote some of it to make better sense (ie extension as a form of specialization) this should compile and get it's point across effectively.

Please close this issue if you feel the changes in my issue15 commit a moment ago help. There's certainly room for improvement there, and that I am open to hearing about it. I certainly appreciate the feedback either way, but in larger volumes - pull requests are the most convenient to get through.

from java-koans.

kjc avatar kjc commented on September 23, 2024

The "oldest" (base) class is Child, which is extended by Parent and then extended again by GrandParent... which is kind of weird. Makes it harder to tell what was intended when you have a line like Object parent = new Child();... but I guess the intent is to confuse, at least a bit.

No compilation errors though, and I could get all these koans working. The only cleanup I'd really suggest is moving Child and its interface Sleepable up from the bottom of the file so that they appear before the classes that extend them. Closing this one.

PS: I've never used git before --- only Subversion, CVS, and RCS --- so I can't make pull requests until I read up on what they are. :) Not a project I can start tonight, I'm afraid.

from java-koans.

Related Issues (20)

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.