C++ Program to demonstrate example of friend class