What is friend function?

Answer Posted / kumarasamy

it is nonmember function of class it can access the
private and protected members in the class, And it is
defined by a keyword frind.........

Is This Answer Correct ?    36 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does <> mean pseudocode?

840


what is the drawback of classical methods in oops?

3108


program for insertion ,deletion,sorting in double link list

2443


What is polymorphism what are the different types of polymorphism?

745


Where You Can Use Interface in your Project

1616


Which is better struts or spring?

805


Explain the concepts involved in Object Oriented programming.

869


Is oop better than procedural?

766


What is polymorphism explain its types?

914


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

2269


What is encapsulation example?

764


What is the difference between inheritance and polymorphism?

792


What are the 3 principles of oop?

832


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

1969


is there any choice in opting subjects like 4 out of 7

1924