Search:

Type: Posts; User: Stockholm Syndrome

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: Small problem regarding inheritance of classes

    Yea sorry I phrased that wrong.. I rewrote my code and my print method that I overrode was no longer called putEmp(). Basically the same though. Thanks again for the help
  2. [SOLVED] Re: Small problem regarding inheritance of classes

    Thanks for the help I solved it by making a new print method in class Employee and then overriding it in the subclass Tradesman.
  3. [SOLVED] Re: Small problem regarding inheritance of classes

    How do I do that?
  4. [SOLVED] Re: Small problem regarding inheritance of classes

    But how would I use it? For instance in put(), if i use putTrade() instead of putEmp() I will get an error any time I try to print an employee without a trade as they have different parameters
  5. [SOLVED] Small problem regarding inheritance of classes

    Hey, just moved onto inheritance in college and was working through our first exercise sheet when I got this problem. For the exercise, we have to write a class encapsulating the notion of an...
Results 1 to 5 of 5