friend classes are used when two or more classes


Friend classes are used when two or more classes are designed to work together and require access to each other's execution in ways that the rest of the world shouldn't be permitted to have. In other words, they help keep private things private. For instance, it may be desirable for class DatabaseCursor to have more privilege to the internals of class Database than main() has.               

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: friend classes are used when two or more classes
Reference No:- TGS0263487

Expected delivery within 24 Hours