When we execute the above visual basic program, we will get the result as shown below. If you observe the above example, we are extending the behaviour of private variables ( name, location) using properties ( Uname, Ulocation) with Property keyword, Get and Set accessors by performing the some validations like to make sure Uname value is equals to only “ Suresh” using Set accessor and converting property text to uppercase with Get accessor. WriteLine( "Location: "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |