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.section.io #
 
PREVIOUS NEXT
Tagged: #friend #Class
ADD COMMENT
Topic
Name
9+2 =