
Explanation:
Box 1: Static
The ConvertToCurrency method does not interact with any internal fields or instance methods of the PriceEngine class. It strictly takes the parameters passed to it (amount and toCurrency) and hands them off to the global Currency::convert framework helper. Because it is completely independent of the object's state, it should be declared with the static keyword so it can be called anywhere without creating an instance of PriceEngine.
Box 2: Instance
The calculate method references instance members of the class. Specifically, it calls this.applyDiscount() and utilizes the instance variables _baseAmount and _currency (notated as baseAmount and currency in the class declaration). Because it relies heavily on the specific state of an object instance, it must be declared as an instance method (omitting the static keyword).
Reference:
https://github.com/hemangsharma/94692_Data_Science_Practice_Assignment_2