Example is below
<script runat="server">
class student
public name as string
public age as integer
public function msg as string
return "my name is " & name & "my age is " & age
end function
end class
</script>
<%
Dim obj as new student
obj.name = "shahid"
obj.age = 25
Response.Write(obj.msg)
%>