Hello Markus,
I got today the confirmation from IBM (a ticket was opened) that Rhapsody does not really support abstract classes in SysML. (It depends on the language that is chosen.)
In C++ it's almost ok. You can define in a block two virtual operations, which is OK for C++, as they do the same. Indeed, as Rpy seems to not set the isAbstract flag (as defined in SysML/UML), it cannot be prevented, that the class is instantiated directly. I would expect this leads then to a compiler error for the generated code.
In Java abstract classes are known, so here we would need an abstract class in SysML.
What I did is, I created an abstract stereotype, use it in the block and define only virtual function.
Indeed Rhapsody allows to directly create e.g. parts of such classes, which I don't like.
------------------------------
Robert Fromm
------------------------------
Original Message:
Sent: Thu November 13, 2025 07:16 AM
From: Markus Nordstrand
Subject: Defining abstract blocks
I remember I looked into this issue a while ago, I think the only "solution" I found to make the text in the class/block in italics per the UML spec:

Was the use a generalization in add an operation to the abstract class like this, and even then I only got it to work for an interface class:

Then you can hide the operation afterwards and then your interface class looks like an abstract class.
------------------------------
Markus Nordstrand
------------------------------