Private classes in java

hello!
im making a uml model for a software that is going to be developed in java.
lets say i have a class A and a class B. class B is a private class and supposed to be nested inside class A. how do i set my classes up so that the code generation puts the private class B inside class a. right now i set the visibility to B private and the code generator simply ignores it. class b is also outside of class a so i suppose the generator cant really find any kind of relation.

thanks in advance

chris

Hi Chris,

Thanks for your post. You can draw a containment from Class A to Class B, then Class B will be generated even private in code generation.

FYI, the class at the head of the containment contains the class at the end of the containment end. You may refer to the image below.

If there are further inquiries, please do not hesitate to ask.

Best regards,
Lilian Wong

containment.png