If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
No Answer is Posted For this Question
Be the First to Post Answer
class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.
Friend functions can access private and protected members of a class.
Is it possible for a member function to delete the pointer, named this?
How const int *ourpointer differs from int const *ourpointer?
Can we distribute function templates and class templates in object libraries?
What is the use of 'using' declaration in c++?
Define copy constructor.
what is Loop function? What are different types of Loops?
Is there anything you can do in C++ that you cannot do in C?
Which function should be used to free the memory allocated by calloc()?
What is the main use of c++?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .