In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to analyze the Visual Studio inheritance line through the picture", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to analyze the Visual Studio inheritance line through the picture" this article.
Visual Studio after a long time of development, many users are very familiar with the Visual Studio inheritance line, inheritance is visible in the class diagram, Visual Studio inheritance line describes the relationship between base types and derived types, here I publish a personal understanding, and discuss with you. Implicit inheritance of System.Object and System.ValueType does not appear in the class diagram. The following figure shows class inheritance in the class diagram. In the figure, XClass inherits ZClass. The Visual Studio inheritance line is a vector that starts from the derived class to the base class, and deleting the Visual Studio inheritance line can eliminate the inheritance relationship. Alternatively, you can remove the Visual Studio inheritance line from the shortcut menu by opening the shortcut menu on the Visual Studio inheritance line and selecting remove Code.
New base and derived classes can be defined in the class diagram. Select the Visual Studio inheritance line in the toolbox. Drag a Visual Studio inheritance line from the derived class to the base class. The premise is that the base and derived classes are already in the class diagram. If the base class is not in the class diagram, drag the class from the Class View window to the derived class diagram in the class diagram, which not only creates an inheritance relationship, but also adds a base class to the class diagram.
Interface inheritance and class inheritance are also shown in the class diagram. Use the Visual Studio inheritance line to add interface inheritance to a type. To fully implement the interface, the class diagram adds branch lines for each member of the interface in the derived class. Developers can replace these branch lines with appropriate implementations in the code editor. Interface inheritance is not described as a Visual Studio inheritance line, but rather as a lollipop shape on top of a derived class. As shown in the following figure, ZClass inherits the IA interface. You can use the shortcut menu on the interface label to change how inheritance is implemented, including whether the interface is implicitly or explicitly implemented.
Relationship lines such as Visual Studio inheritance lines and related lines can be diverted. Simply click the line and drag the mouse to divert. The line can be diverted many times. The following figure shows a diverted Visual Studio inheritance line. Drag the end of the line to reconfigure the relationship lines on the class graph. When the mouse pointer is positioned over the end of the relationship line, the pointer becomes a cross. The shortcut menu of relationship lines can hide, reroute, delete, or display relationship properties.
A class diagram can locate a base class or a derived class. Open the shortcut menu on the title of the class drawing, and the Show Base Class command locates the base class of the type in the class diagram. If the base class is not displayed, it is added to the class diagram. The Show derived classes command is used to select derived types.
The above is all the contents of the article "how to analyze Visual Studio inheritance Line through Pictures". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.