Deep inheritance classes and interfaces