class GameObject { private: int guid; public: int GetOwnerGUID() { return guid; } }; // Usage GameObject bullet; int ownerGUID = bullet.GetOwnerGUID();In this example, a GameObject class containing 'guid' as a private member variable is defined. The GetOwnerGUID() function is called to retrieve the guid of a bullet object.