answersLogoWhite

0

If you are asking about member functions.

When we declare a function inside a class then that function becomes member function of that class and this function can access the whole class

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is a method in c plus plus?

In C++, methods are simply class member functions.


Why functions are not used in c plus plus?

Of course they are used. Both stand-alone and class-member functions are used in C++.


What is the difference between an attribute and a behavior in c plus plus?

An attribute is a class member variable while a behaviour is a class member method.


What is message passing in c plus plus?

-define class with necessary data member & member function. -create object of that class. -communication.


What are special operators in c plus plus?

The only "special" operators in C++ are those that cannot be overloaded. That is; the dot member operator (.), pointer to member operator (.*), ternary conditional operator (:?), scope resolution operator (::), sizeof() and typeof().


What is friendly in c plus plus?

The keyword "friend" allows a function or variable to have access to a protected member inside a class.


What is a free member account in fusion fall?

A member that does not have to pay money.


Is there anything similar between C and C plus plus with reference to data hiding?

No. Data hiding is a feature of object oriented programming. C does not support OOP, and therefore has no private member access. All members are public in C.


Can you use the same function name for member function in c plus plus?

Yes. (And of course you could simply try it, instead of asking.)


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c


Why can't i get blossom in fusion fall?

you got to be a member


What is c plus c plus 2c plus c plus c equal?

c + c + 2c + c + c = 6c