I loved this post. Educational as always. However, if I may add a minor tangent with regards to the class diagrams.
We want to also show the visibility of the attributes and the methods. So in your example, we would have append a +, - or # depending on whether the attribute/methods is public, private or protected respectively.
+name => name is a public attribute
-age => age is a private attribute
#make_sound() => make_sound is a protected method
This typically helps the transition from design to implementation easier.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I loved this post. Educational as always. However, if I may add a minor tangent with regards to the class diagrams.
We want to also show the visibility of the attributes and the methods. So in your example, we would have append a
+, - or #
depending on whether the attribute/methods is public, private or protected respectively.This typically helps the transition from design to implementation easier.