Classes - Constructors and inheritance

765 views
Skip to first unread message

Albert Palomer

unread,
Aug 29, 2017, 12:02:48 AM8/29/17
to StarUML
Hi,

I just started using StarUML and so far I like it very much (I use Ubuntu 14.04 and StarUML 2.8.0). I have also been able to generate the *.h and *.cpp files that I need for the classes. So far, the only things that I have not been able to do are (I add my model named test):

1- How can I define a constructor? When I add a function with the same name as the class, I can not make it appear voithout void in the generated *.h and *.cpp

2- Is there a way that when the cpp code is generated the pure virutal functions from the parent class are added in the cpp file automatically or am I forced to redefine them in the child class?

Thank you!!
test.png
test.mdj

StarUML

unread,
Aug 30, 2017, 3:00:17 AM8/30/17
to StarUML
Hi,

1. Only default constructor is generated.
2. It's not supported yet.

For more details, please check here: https://github.com/staruml/Cpp

Thanks,
StarUML Team


2017년 8월 29일 화요일 오후 1시 2분 48초 UTC+9, Albert Palomer 님의 말:
Reply all
Reply to author
Forward
0 new messages