san.EmpName =
"Sandeep"san.EmpDesignation =
"Software Developer"san.EmpCity =
"Sydney"san.EmpSal = 60000
san.EmpId = 2707
'assigning values to member variablesWriteLine(
"EmpName" + " " + san.EmpName)WriteLine(
"EmpDesignation" + " " + san.EmpDesignation)WriteLine(
"EmpCity" + " " + san.EmpCity)WriteLine(
"EmpSalary" + " " + san.EmpSal.ToString)WriteLine(
"EmpID" + " " + san.EmpId.ToString) 'accessing member variables with the period/dot operatorRead()
End SubOutPut:
EmpName Sandeep
EmpDesignation Software Developer
EmpCity Sydney
EmpSalary 60000
EmpID 2707
EmpDesignation Software Developer
EmpCity Sydney
EmpSalary 60000
EmpID 2707
No comments:
Post a Comment