should be
Code:
Dim x As emp = New emp()
x is still null, you have to call the constructor to actual create the object before using it.
For future reference you could also do it like this:
Code:
Dim x As New emp()
`OR you could also do it like this:
Dim x As emp
x = New emp()