Hello,
I am using eclipse-cpp-helios-SR1 release together with SDE-EC 6.1 Professional on Scientific Linux 5.1.
Problem:
I define a class, say its name is AbstractBase, using a UML class diagram. This class contains a pure virtual function, say its name is virtFunc(). In the class specification, I mark the class as abstract. In the operation specification, I select the function to be ‘Pure Virtual’. Then I generate code, and everything looks fine.
Then I derive a class from AbstractBase in the same UML diagram, say its name is ConcreteSubclass. I use the ‘Realization’ arrow to do so. This class implements the function virtFunc(). Thus, in the operation specification of this function, I select the function to be ‘Virtual’ (not ‘Pure Virtual’ as it is in its base class). The problem is now that when I generate code, the function ConcreteSubclass::virtFunc() is of type ‘pure virtual’ instead of ‘virtual’, no matter what I do. I can therefore not provide an implementation for it.
What am I doing wrong?
Kind regards,
Andreas Isenegger