It is used to define a user-defined reference type datatype member.
Syntax:
Class Class Name
Members
. . . . .
End class
Note: Members of the class is of two types
These members are bound to the objects defined for the class and they can be accessed using the object name.
Inclined to build a profession as VB.Net Developer? Then here is the blog post on, explore VB.Net Training
These members belong to the class definition and they can be accessed using the class name. Shared members will be loaded on the memory when the class definition is headed.
The instance of a class is called an object.
Note:
Syntax:
Modifier object name as new Class Name ([. . .])
These are the place holders for maintaining a value based on the data type used for defining the variable.
Syntax:
Modifier variable name as Datatype [=value]
These are the access specifiers that are used to control the access of the members.
Note: All the above modifiers can be used within a module and class. But these modifiers can’t be used from the methods.
Ex:
Module M1
Public I as integer ‘valid’
Class C1
Public j as integer ‘valid’
End class
Sub main ( )
‘Public K as integer error
End sub
End module
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.