What is friend function?

Answer Posted / karthi

the friend function access basic class variables by using
dot operators.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation c#?

603


What is purpose of inheritance?

645


What is the purpose of enum?

585


Is html an oop?

585


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1657






Where You Can Use Interface in your Project

1429


Can a varargs method be overloaded?

619


What is cohesion in oop?

624


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1702


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2038


Why do we use oops?

595


What is the difference between inheritance and polymorphism?

594


What is difference between class and object with example?

566


What is abstract class in oop?

537


What does and I oop mean?

620