Create Class in Visual Basic .NET

You can use this code to create class called People. It has three properties First Name, Last Name and Date of Birth

Now you can create object using following code

Here I am just creating the object from the class and assign values for the properties

Leave a Reply

Your email address will not be published. Required fields are marked *