Search:

Type: Posts; User: gozzy

Search: Search took 0.13 seconds.

  1. [SOLVED] Re: Trying to iterate through hashmap of objects from a class I created

    From long experience I can tell you one guiding principle: never write code until you have the design completely worked out. I gave it some thought and RecipeElement is probably a good way to go. If...
  2. [SOLVED] Re: Trying to iterate through hashmap of objects from a class I created

    Well you of course need to establish the correct design. A subclass B of A means that B is a specialisation of A. You can surely see that a recipe and an ingredient are separate entities? (even if...
  3. [SOLVED] Re: Trying to iterate through hashmap of objects from a class I created

    I think you need to establish your abstractions and classes properly. An Ingredient certainly doesn't extend Recipe. A Recipe is composed of ingredients. You might consider something like a subclass...
Results 1 to 3 of 3