Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences in Type and Naming Conventions for UML Class in Different Programming Languages

Are UML class representations different for each programming language, or do they adhere to a standard? I have conducted extensive research but remain confused.

For instance:

  • In Python: set_name(): None
  • In Java: setName(): void
  • In Kotlin: setName(): Unit
like image 798
Ali Dehkhodaei Avatar asked Oct 21 '25 03:10

Ali Dehkhodaei


1 Answers

There is not one "standard" for UML naming conventions. I would advise you use names similar to what you would use in the programming language you are using. As long as your intended reader understands the material then it is a good convention.

Most important is that whatever you choose remains consistent throughout your documentation.

See: this question as well.

like image 163
rene Avatar answered Oct 22 '25 16:10

rene



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!