Skip to content

SimpleTechTalks

To make technologies simpler

  • Home
  • Data Structures
    • Linked List
    • Graph
    • Hashing
    • Stack
    • Queue
    • Priority Queue
    • Tree
      • Binary Tree
      • Binary Search Tree
    • wordpress
  • Programming
    • Unix
    • Dynamic Programming
    • C
    • C++
      • C++11
    • Python
  • Technology
    • Diameter
    • Microservices
    • Networking
    • Telecom
    • Tools
  • Questions & Answers
    • Programming Questions
    • Interview Questions
  • Contact Us
  • Home
  • Data Structures
    • Linked List
    • Graph
    • Hashing
    • Stack
    • Queue
    • Priority Queue
    • Tree
      • Binary Tree
      • Binary Search Tree
    • wordpress
  • Programming
    • Unix
    • Dynamic Programming
    • C
    • C++
      • C++11
    • Python
  • Technology
    • Diameter
    • Microservices
    • Networking
    • Telecom
    • Tools
  • Questions & Answers
    • Programming Questions
    • Interview Questions
  • Contact Us

Tag: Friend Class

C++ / Programming Questions

Friend Function Explained With Simple Example

adminby admin

A Friend function is a function defined outside the class, but it has access to all private and protected members of the class. To declare a friend function, it’s prototype must be declared inside the class, preceding it with keyword “friend”. For eg:

class Demo
{
    private:
        int m;
        int y;

    public:
        friend int sum (Demo d);
        void print_val ();
        Demo (int m, int y);
};
(more…)
Friend Function Explained With Simple Example Read More

Search

  • Difference Between Friend Function and Member Function
  • C++11: extern template Explained With Simple Example
  • Binary Search Tree Deletion Of Node Explained With Simple Example
  • Diameter Protocol Basics
  • AVL Tree Deletion Of Node Explained With Simple Example
  • AVL Tree Explanation With Simple Examples
  • Topological Sort Explained With Simple Example
  • std::bitset explained with simple example
  • C++11: Uniform Initialization explained with Simple example
  • Binary Tree Inorder Traversal Explained With Simple Example
Copyright © 2025 SimpleTechTalks. Privacy Policy