In the software engineering world, there are some common terms that every programmer should know. I have listed 6 of those terms in this article and included a short meaning. Follow the given links to learn about those briefly. Let’s start- WHAT IS IDE? An Integrated Development Environment (IDE) is a software application […]
Programming
How To Access private member variables of a class without using its public member functions ? Answerred Using C++
Today i am going to tell you how to access private member variables of a class without using its public function. Method 1: Using friend function. Consider the following example:- #include<iostream> using namespace std; class A { int a; friend void seta(A &ob,int x); friend int geta(A &ob); }; void seta(A &ob,int x) { ob.a=x; […]