Visual Basic .NET within an ASP .NET Page
Object-Oriented Programming
-
Programming statements, or code,can be combined into logical
grouping functions, event handlers, and procedures.
-
In Object-oriented programming, you can create objects based
upon a class,
then you can access the object across multiple pages.
-
An object is a set of related code that is compartmentalized
and
built upon these classes.
-
Creation of an object consists of two steps.
The first step is to create the object definition, called the class.
You use the class as a template for creating a new object.
When you create an object, you are really creating an instance of the class.
The final web pages should
appear as follows:
ClassVariables.aspx
SampleUsingVB.aspx
The following VB .NET
examples allow you to experiment with
the code to understand the creation of
objects, functions and properties.
The example "debugger" contains a small
logic error that you should be able to fix.
debugger.zip
account.zip triangle.zip