🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17035

Constructor problems

#17035
From: Claire Kennedy
Date: Tue, 15 Dec 1998 00:00
41 lines
1507 bytes
Could anyone tell me why this constructor will not work.  The complier
is telling me that the constructor CIFSClientInfo(java.lang.String[])
not found in class CIFSClientInfo.
This is how I   call the constructor in the main program:

    public CIFSClientInfo CClients[] = new CIFSClientInfo[1];
    public String AData[] = {"10 NOV", "DS", "9000000", "USD/IEP",
"7,000,000"};
    CClients[0] = new CIFSClientInfo (AData);

and this is the class were the construtor held:

class CIFSClientInfo
{
    public String sBooked;
    public String sType;
    public String sTransacted;
    public String sSettlement;
    public String sRate;
    public String sMaturity;
    public String sPOSVAL;
    public String sReval;

    public void CIFSClientInfo()
    {
    }

    public void CIFSClientInfo (String[] AData)
    {
        this.sBooked = AData[0];
        this.sType = AData[1];
        this.sTransacted = AData[2];
        this.sSettlement = AData[3];
        this.sRate = AData[4];

    }

}

Thanks
Claire
Technical Details
Message-ID: <36763CA8.3518AF30@ifs.ie>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d6d2a380b8687c2c,start
X-Google-Attributes: gidf74b3,public
From: Claire Kennedy <claire.kennedy@ifs.ie>
Subject: Constructor problems
Date: 1998/12/15
Message-ID: <36763CA8.3518AF30@ifs.ie>
X-Deja-AN: 422448027
Content-Transfer-Encoding: 7bit
Organization: Indigo
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language