TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Stephen
date: 2004-06-02 17:03:00
subject: Simple question about - I

Let's assume I have a class animal with two constructors.

    Public Sub New()

        Me.Name = ""
        Me.Weight = 0
        Me.Height = 0
        Me.Color = ""

    End Sub

AND

    Public Sub New(ByVal Name As String, ByVal Weight As Integer, 
                   ByVal Height As Integer, ByVal color As String)
   
     Me.Name = Name
        Me.Weight = Weight
        Me.Height = Height
        Me.Color = color

    End Sub

_______________________________________________________________________________

Let's also assume I have a class named Horse that inherits the Animal
class.

Now I have noticed that my Animal constructor that requires no
parameters is inherited to horse but my parameter constructor is not.

All I really want to do is call that constructor from the Horse class
without explictily having to copy it.
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/2/04 5:03:59 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.