您的位置:首页 >> 编程开发 >> .NET >> VB.NET >> 正文
VB.NET RSS
 

精通ASP.NET(基于VB.NET)(四)VB.NET继承

http://www.rdxx.com 04年03月21日 09:14 互连网 我要投稿

关键词: 继承 , VB.NET , ASP.NET , .NET , ASP , VB

                              精通ASP.NET(基于VB.NET)(四)VB.NET继承
                
 (1) 理解继承:继承是实现相关类方法、接口等共享的一种手段。相关类是指类及其派生类。基于不同类实例的独特性,故引入了public、private、protected作用域和overrides(重写)、方法重载overloads。这样作的目的:提高代码的复用性。
                 (2)继承的种类:实现继承、接口继承和可视继承。
                 (3)接口:先看一例
                            Interface Inter_comm
                                      sub read_x(by vlue x as integer)
                                      Function write_x(by vlue x as integer) as long
                                      Property pr_x() as string
                             end interface
                             class Inter_comm_made
                                      Implements Inter_comm
                                       private x as string
                                       sub read_x(by vlue x as integer) Implements Inter_comm.read_x
                                       end sub

共3页  第1页 第2页 第3页


 
 
标签: 继承 , VB.NET , ASP.NET , .NET , ASP , VB 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站