In your banana constructor:
your are assigning thisname's value to the parameter. Since thisname is never initialized the parameter's value is being set to null. That is beside the point, as what you have done is flipped around your assignment statement. Should be:Code:name = thisname;
Also, you can call the 'thisname' variable 'name' and do something like:Code:thisname = name;
To terminate a Java program you can useCode:this.name = name;
Code:System.exit(0);
[10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts
There are currently 1 users browsing this thread. (0 members and 1 guests)