Tag: inheritance
I wrote about “Hy” language in an earlier article. Since then I have been exploring the language some more, trying to get a better understanding of its features. The following example uses inheritance to model different types of “Space” objects such as Asteroid, SpaceShip and Planet. It is taken from an earlier article that explained […]
We are familiar with the advantages of class inheritance in object-oriented languages such as C++, C#, Java, and Python. The ability to reuse functionality via inheritance allows us to express our software design optimally, without having to write redundant code. iLangGen encourages the reuse of grammars by supporting Grammar Inheritance, where a grammar can explicitly […]
In my first post on Julia, I noted that the language does not allow deriving from a concrete (i.e., non-abstract) class. It definitely came as a surprise because in most OO languages (C++, Java, Scala, C#, etc.) such a restriction does not exist. It is true that when you design an inheritance hierarchy, you have […]
Recent Comments