using classes with constructor objects
问题 I am trying use a class with a constructor object, in another class. But how do I call that class correctly? eg: How do i use Class 1, in Class 2? The example below is creating an object, from a response from an axios call. The _object should be whatever I get from getData() . Im not sure if this is the right approach. But how do i then call this class with the constructor, in another class? Ideally I want to be able to query the properties of the object, and use them in the other class, but