in reply to compile or run-time inheritance

Sure you can manipulate the inheritance at runtime - see for instance the second example in Re: Creating packages on the fly.

/J\