Skip to content

Friend Functions

2 posts1 contributor

+ FollowBe the first to follow this
Write about it

Articles about Friend Functions

  1. 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.

    Akshay Amin1,6251,000
  2. 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.

    1,4981,000