Friend Function
We all know that as per the rule of encapsulation, We cannot access data members or member functions declared with the private scope specifier from outside the class. There are some casesRead More…
We all know that as per the rule of encapsulation, We cannot access data members or member functions declared with the private scope specifier from outside the class. There are some casesRead More…
Overloading refers to the process of using the same thing for different purposes. It is also referred to as function polymorphism. It works on the concept “Same name, multiple tasks”. In programmingRead More…
Problem in Using Normal Function The main advantage of function is to save codding efforts, memory space and reusability. But whenever we call a function, it consume a lot of time sayRead More…
A class is defined with the goal of creating user defined data type, which is similar to build-in-data-type. Built-in data type variables can be initialized at the time of declaration but weRead More…
Static Data Member (Class variable): Static Data member has the following properties: It is initialized by zero when first object of class is created. Only one copy of static data member isRead More…
Similar to passing primary data-type variables, we can also pass object as argument to the function. Objects can be passed by two methods: Call by value: In this method a copy ofRead More…
As we know that in C programming language it is compulsory to pass all arguments during function call, which are used in function definition, but C++ allows us to call a functionRead More…
Function in C++ program is similar to function in C program. Function provides the top-down structured programming approach. It also provides re-usability that means we can use the same function multiple times.Read More…