Example according to this Program

0 votes
asked May 17 by (120 points)
Language in C++

Write a program in c++ , in which make a template class Object and define global function , make_object which takes a reference to its templated type to bind to. This function will

be the friend function of Object class.

explanation:

make a template class name" Object" . make global Function which is friend Function for Class. and proceed according to qUESTION

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...