In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to add Visual Studio class diagrams. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
1. Create a new class library. In Visual Studio 2005, choose the New submenu from the File menu to create a new project. You can also do this by clicking New Project in the standard toolbar. Select the Class Library template in the C#project and name the project Personnel.
2. Add a Visual Studio class diagram to your project. Open the Project menu and select the Add New menu item to add a Visual Studio class diagram from the Add New dialog box. This type of diagram is named Employee.
3. Add a new interface using the class diagram toolbox. Name this interface "IEmployee" and use default options for others.
4. Add a new abstract class called Employee using the Class Diagram Toolbox.
5. Use the Class Diagram Toolbox to add another class named "HourlyEmployee."
6. Add a new structure with the Class Diagram Toolbox, named Name. The structure is represented in the Visual Studio class diagram as a rounded square.
Add three members to the IEmployee interface from the Class Details window. The employeeInfo method returns a string. The Age property is an integer used to read and set the age of an employee. ***, The Fullname attribute is of type "Name" and is used to get the name of "Employee."
The Employee class should inherit and implement the IEmployee interface. Select the inheritance line in the Class Diagram toolbox and drag the inheritance line from the Employee class to the IEmployee interface. The interface members now appear in the class details of the Employee class. In addition, the Employee class gives a rudimentary implementation of the interface members:
public abstract class Employee : IEmployee { #region IEmployee Members public int Age { get { throw new Exception( "The method or operation is not implemented. "); } set { throw new Exception( "The method or operation is not implemented. ")} } // Partial listing Thank you for reading! About "How to add Visual Studio class diagram" This article is shared here, I hope the above content can have some help for everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
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.