You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voiddisplayStorage(const Storage &storage); // compiler needs to know what the Storage is
};
classStorage
{
private:
int m_nValue{};
double m_dValue{};
public:
explicitStorage(int nValue, double dValue)
: m_nValue{nValue}, m_dValue{dValue}
{}
// friend can access all members in this class
friendvoidDisplay::displayStorage(const Storage &storage); // compiler needs to know Full context of class Display, so it should be front of this class