Results 1 to 5 of 5
- 02-27-2013, 08:46 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 5
- Rep Power
- 0
- 02-27-2013, 08:52 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Re: having trouble Initialising instance variables in the constructor
Check how you want to call your constructor (pay attention to the actual parameter list) and how your constructor is defined (look at the formal parameter list); they differ according to the compiler and the compiler is always right.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 02-27-2013, 09:13 PM #3
Member
- Join Date
- Nov 2012
- Posts
- 5
- Rep Power
- 0
Re: having trouble Initialising instance variables in the constructor
Sorry, but i'm still pretty confused
i'm guessing it has to be something to do with the PersonalCustomer Class constructor, should i add a super. before initialising the variables?
Kind regards
Stefano
- 02-27-2013, 10:19 PM #4
Senior Member
- Join Date
- Jan 2013
- Location
- United States
- Posts
- 902
- Rep Power
- 1
Re: having trouble Initialising instance variables in the constructor
Appears like another thread editing problem.
JimThe Java™ Tutorial
YAT -- Yet Another Typo
- 02-28-2013, 04:01 AM #5
Re: having trouble Initialising instance variables in the constructor
Here's the content removed from the OP:
This was in the deleted post:
Stefano was cautioned against removing content that has replies, in this thread: Text User Interface, can't get a method which adds a customer to work
Member Stefano is banned for a month. Any future repeat of this behavior will lead to a permanent ban.
db
THREAD CLOSEDWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Instance Variables
By TriSBR in forum New To JavaReplies: 2Last Post: 11-16-2011, 04:16 PM -
Instance variables
By lala in forum New To JavaReplies: 1Last Post: 01-26-2011, 04:38 PM -
Constructor and instance field
By MIA6 in forum New To JavaReplies: 7Last Post: 11-02-2009, 06:44 PM -
What is Instance, Empty Constructor ....
By tking88 in forum New To JavaReplies: 21Last Post: 10-26-2009, 02:38 PM -
What are Instance variables and static variables?
By sandeshforu in forum New To JavaReplies: 3Last Post: 09-09-2009, 05:48 PM


LinkBack URL
About LinkBacks


Bookmarks