Search:

Type: Posts; User: awinston

Search: Search took 0.07 seconds.

  1. Re: Having trouble dealing with objects using abstract methods/classes and polymorphi

    I think you might be under the impression that the arguments in the constructor of a subclass have to mirror the arguments in the constructor of its superclass, and this is not the case. A subclass...
  2. Re: Having trouble dealing with objects using abstract methods/classes and polymorphi

    For Square, you can just have one parameter for its constructor because it's length and width are the same.

    However, I don't think it makes sense to have the right triangle extend Rectangle. A...
Results 1 to 2 of 2