![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| call constructor of java class in script | thebladerunner | Shell Programming and Scripting | 1 | 10-21-2008 12:23 PM |
| Linguistic Tree Constructor 2.8.0 (Default branch) | iBot | Software Releases - RSS News | 0 | 01-27-2008 07:30 PM |
| how do you handle a constructor and destructor that fail | amitpansuria | High Level Programming | 4 | 08-16-2007 02:16 PM |
| what is diff b/w copy constructor and overloaded assignment operator | amitpansuria | High Level Programming | 3 | 08-06-2007 12:45 PM |
| why constructor cannot be virtual | amitpansuria | High Level Programming | 2 | 08-03-2007 12:02 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Constructor problem
Hi guys I am new to these forums but since I am taking a class at college I would appreciate any help that is possible for this program. My instructor said that when its complete the program should be able to store all 3 fields instead of just 1.
public class Greeter2Test { public static void main( String[] args) { Greeter terse = new Greeter ( "Hello, ", "Goodbye, ", "Dave" ); Greeter verbose = new Greeter ("How are you, ", "Have a nice day, ", "Hal"); System.out.println( terse.sayHello() ); System.out.println( verbose.sayHello() ); System.out.println( verbose.sayGoodbye() ); System.out.println( terse.sayGoodbye() ); } } Im not sure what it is that I am supposed to edit to make it work properly The error I get is cannot find symbol. But I cant see which symbol it means or what exactly it is that I am misssing any help would be most appreciated. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
How, may I also ask, is it related to Unix? |
|
#3
|
|||
|
|||
|
Buddy you have missed the Greeter class definition and this question is related to Java.
|
|
#4
|
|||
|
|||
|
I apologize for being misguided in my previous question and to boot placing it in the wrong forum sorry
|
|
#5
|
||||
|
||||
|
Thread closed. Reason: Homework.
|
||||
| Google The UNIX and Linux Forums |