well, after school, be sure to make plans with that friend so that you can still see eachoter.
Friend class is one which has been declared so (as a friend) inside other class to make it access the private members of the class which has extended it's friendship.For Example,class A{private:.......public:..............friend class B;};class B{.....................};As in the above code snippet, class A has extended it's friendship to class B by declaring B as it's friend inside it's area.Since the Class B has became a friend of A, B can directly access all the private members of A. But the reverse is not possible.Where as an abstract class is a one, which doesn't represent any particular object in nature. Instead they use give as abstract look of an object.For instance,When we say TATA Indca, Lancer, Ford Icon, Toyota Innova they are different car models. Each of them having their own properties and features, but all of them are Cars. So here, Car is an abstract class where as the others are concrete classes.
A friend is any class, class method or function that is declared to be a friend of a class. Friends have private access to the classes that declare them friends.
No. De-friend the friend class and provide an access method function.
try to become friends with that person that your best friend is friends with. MAybe you can become a trio.
False. it must be declared a friend of both classes.
The only function of a friend is to extend the private class interface outwith the class, essentially making the friend part of the class interface.
yes
yeah
yes Justin biber as friends in his class
A friend constructor is a constructor that is declared a friend of another class and that grants that constructor private access to the class in which it is declared a friend. Example: class Y { friend char* X::foo (int); // friend function friend X::X (char); // constructors can be friends friend X::~X(); // destructors can be friends }; For more information, see '11.3 Friends' in the current ISO C++ Standard.
Different Class was created in 1994.
class B; // forward declaration. class A { private: void myFunction(B b){b.myFunction();} // Calls private method in b. }; class B { friend void A::myFunction(B b); // Friend function declaration. private: void MyFunction(); };