Article View: aus.computers.java
Article #804Constructors
From: Jonathon Bates
Date: Sun, 23 Apr 2000 00:00
Date: Sun, 23 Apr 2000 00:00
35 lines
1695 bytes
1695 bytes
Hi All, I have a quick question in regards to constructors! When compiling a class file, I get the following error: [batesy@batesy assignment2]$ javac as2q1class.java as2q1class.java:68: Duplicate method declaration: as2q1class(int) public as2q1class(int theassign_two) ^ as2q1class.java:77: Duplicate method declaration: void set(int) public void set(int newassign_two) ^ as2q1class.java:83: Duplicate method declaration: as2q1class(int) public as2q1class(int thetest_one) ^ as2q1class.java:92: Duplicate method declaration: void set(int) public void set(int newtest_one) ^ as2q1class.java:98: Duplicate method declaration: as2q1class(int) public as2q1class(int thetest_two) ^ as2q1class.java:107: Duplicate method declaration: void set(int) public void set(int newtest_two) ^ 6 errors Now I am soooo far lostand I dont know why! I have both the class + the client file located at http://batesy.iinet.net.au/java/problem/ If someone could please provide some feedback It would be greatly appreciated! I was under the imporession that the code was all correct! Cheers Jonathon Batesy
Technical Details
Message-ID:
<3902becc$0$20235@echo-01.iinet.net.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,ba8cc3bfd1429785,start X-Google-Attributes: gid10d6db,public From: Jonathon Bates <batesy@batesy.iinet.net.au> Subject: Constructors Date: 2000/04/23 Message-ID: <3902becc$0$20235@echo-01.iinet.net.au> X-Deja-AN: 614571326 Sender: Jonathon <batesy@opera.iinet.net.au> X-Trace: news.iinet.net.au 956481228 20235 iotpai@203.59.24.144 User-Agent: tin/pre-1.4-971215 (UNIX) (Linux/2.0.36 (i686)) Newsgroups: aus.computers.java