home

Asp.net Class Object Tutorial


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)
           
%>


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web development by web design company DotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com. web design courses