News for hackers. Stuff that matters.

SparK-Cruz

Re:A new kind of inheritance in programming languages? on Tuesday July 16, 2013 @08:31AM (#6051399)
You are not inheriting behaviour, you are inheriting values of a list. You could simply instanciate a new object of the child type, access the parent type attributes and set it to the child. This could also work with a constructor or a valueOf method.

If you are looking for dynamic languages, see JavaScript and Ruby.