Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
设计类图应该显示私有操作吗?我猜设计类图只需要显示公共方法和最重要的私有属性。我错了吗?
谢谢。
除非您也在设计类的实现,否则没有理由在设计图中包含私有成员。私有成员的目的是作为类的实现细节,通常只要遵守公共契约,实现就无关紧要。