What's the best way to handle member dependencies in OOP?

前端 未结 0 929
清酒与你
清酒与你 2021-02-20 09:19

I have a Position class which represents a stock position like this:

class Position {
private:
    double price_;
    double amount_;
    double valu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题