Search:

Type: Posts; User: curmudgeon

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    1,060

    Re: Java Inheritance problem

    Please explain why you would expect that. Understand that you're calling the calculateRent() method on the flats variable. Please show where you make settings to the object that this variable...
  2. Replies
    5
    Views
    1,060

    Re: Java Inheritance problem

    OK. Your area and thus your rent is being calculated correctly. You're calculating it on the BlockOfFlats object, and for that object the 0 area is correct.

    What are you expecting that the result...
  3. Replies
    5
    Views
    1,060

    Re: Java Inheritance problem

    Please edit your post and fix the code tags. Try




    //... your code goes here
Results 1 to 3 of 3