Soft ASP.NET (VB.NET) (4) VB.NET Inheritance (1) Understanding Inheritance: Inheritance is a means of implementing related class methods, interfaces. Related classes are categories and their assigns. Based on the uniqueness of different instances, public, private, protected scopes, and Overrides are introduced, and the method is overloaded overloads. Purpose for this: Improve the reuse of the code. (2) Types: Realization inheritance, interface inheritance and visual inheritance. (3) Interface: one case look 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 function write_x (byval x as integer) as long Implements Inter_comm.write_x end function Property pro_x () as string Implements Inter_comm.pr_x get return x End Get Set (Byval Value As String) x = value End set End Class interface definition with interface. Implementation class or structure, specified by IMPLEMENTS.