Presentation is loading. Please wait.

Presentation is loading. Please wait.

HOW TO CREATE A CLASS Steps:

Similar presentations


Presentation on theme: "HOW TO CREATE A CLASS Steps:"— Presentation transcript:

1 HOW TO CREATE A CLASS Steps:
1. Create a project. Use any meaningful name you want. 2. Create a GUI for a program that inputs a decimal value and displays a tax amount in a currency format:

2 HOW TO CREATE A CLASS Steps:
3. Enter this code within the button-click code.

3 HOW TO CREATE A CLASS Steps:
4. Select the project name and right-click on it.

4 HOW TO CREATE A CLASS Steps: The screen should now look like this.
5. Select Add, then Class.

5 HOW TO CREATE A CLASS Steps: The screen should now look like this.
6. Select Class below and type in the class name. This example uses clsCalculateSalesTax.vb. Don’t forget to press “Add”

6 HOW TO CREATE A CLASS Steps:
7. Your screen should now look like the one below. 8. Add the class code here. (See the next slide for the class code.)

7 HOW TO CREATE A CLASS Steps:
9. After entering the class’s code below, your class should look like this.

8 HOW TO CREATE A CLASS Steps:
10. The solution explorer should now look like this. Your class has been added to your project and is now a file within your project. Your class is here as a “.vb” file.

9 You must understand this code to be able to do the next program.
HOW TO CREATE A CLASS Steps: 11. Congratulations. You have just written your first class. 12. Next, run your project. It should work. 13. Don’t forget to save your project. You must understand this code to be able to do the next program.


Download ppt "HOW TO CREATE A CLASS Steps:"

Similar presentations


Ads by Google