Skip to content

Tag Archives: C++-Friend function and class

Static Function: It is basically a member function that can be called even when the object of the class is not initialized. These functions are… Read More
Predict the output of following program. #include <iostream> using namespace std; class A { protected:     int x; public:     A() {x = 0;}     friend void show();… Read More

Start Your Coding Journey Now!