Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

friend Class in C++

class ClassB;

class ClassA {
   // ClassB is a friend class of ClassA
   friend class ClassB;
   ... .. ...
}

class ClassB {
   ... .. ...
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #friend #Class
ADD COMMENT
Topic
Name
2+8 =