New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Can i write a function outside an object and associate it with multiple different objects sharing some common property upon which the function operates (turning it to a method for all these objects)? If not , whats the use of defining a method outside the object and assigning it to an object property?
4 Votes
4 AnswersWhile prototyping friend functions in a class is it necessary to always pass the address of the object as parameter?If so why is it that we have to pass address as parameter..In programs involving compositions we never used addresses...Why is the need for address of the objects while using friend?
4 Votes
1 AnswerHot today
3 consecutive words
1 Votes
c++ help
1 Votes
How to insert a link into code
0 Votes
Code optimization | C++
0 Votes
C++ students' scores program
0 Votes
My future
0 Votes
How to complete
2 Votes