MichaelDysart / SYSC4806_Project

The SYSC4806_Project For Group 2
0 stars 1 forks source link

Create a hierarchy of child QuestionMessages based off an abstract class. #33

Closed JacksonSchoe closed 4 years ago

JacksonSchoe commented 4 years ago

Right now there is a single concrete class. So the server already knows at compile time which class to deserialized to. With an abstract class, it has no idea cause it doesn't know the underlying concrete type it should choose. From Michaels's research, it looks like you might have to add to the JSON parser for the abstract class to help it figure out.