Skip to content

Comment on How many lines of Java would this take?parent

Comments

We're swaying off topic here, but, would animal.bark() or animal.fly() even compile under the Java compiler?

Unless the Animal type responds to fly and bark (unlikely in this scenario) that looks like a compile error to me.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.