Search:

Type: Posts; User: Shaybay92

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,609

    Re: Accessing fields of a subclass

    Nevermind. I ended up writing the method for each subclass, and defining it as being an abstract method in the super class. This way I could refer to the method using an object from the superclass as...
  2. Replies
    3
    Views
    1,609

    Accessing fields of a subclass

    If you want a method to intake an object of a superclass type, but you want it to do things differently depending on what subclass it is, is it possible to take input as the superclass, and then...
Results 1 to 2 of 2