To reuse the code which you or someone has already written, you can create a class derived from another category and https://www.educba.com/foreign-exchange-brokers/, thus inheriting each graphs and methods from such another class.