Writing the working example I realized that the error was not in the inheritance, but in another class. Sorry and thanx for your help. It was very helpful!