Friend Functions
2 posts1 contributor
+ FollowBe the first to follow this
Write about itArticles about Friend Functions
Chapter 13: Operator Overloading and Friend Functions in C++
Learn to overload binary and unary operators, enabling seamless operations like addition for custom classes. Discover how to overload stream operators (<<, >>) for easy object output with std::cout. Understand friend functions and classes, granting access to private members for non-member functions like overloaded stream operators, ensuring efficient and elegant code.
A program gives you information about various planets
This C++ program parses one text file to read planet related data. Teaches you how to parse a text file and display on console. Besides this, this program uses inheritance, friend functions and virtual functions.