computer






 

Question by  ash23 (34)

What is the C++ member function prototype?

 
+7

Answer by  testuser (36)

c++ member function prototype is a procedure that performs certain action as per the requirements of the need. The function needs to have a name and parameters that it accepts for processing the information. This function can be called from the other programs or functions in C++. You can also reference or deference this member function with a pointer.

 
+5

Answer by  amulbaby (37)

returntype funcname(arglist.... ) { } In C++ the member function is defined by first putting the return type and then followed by the function name. Inside parenthesis argument list is supplied. After the curly braces contains the actual function definition.

 
+4

Answer by  blkconservative (46)

The C++ function prototype has to do with omitting the function body. It specifies what a function does while specifying the function argument. The argument names are optional in a C++ member function prototype. The C++ function prototypes are always used in class definitions. You can specify an interface for a library by placing prototype in a header file.

 
+3

Answer by  gigo (1706)

This is the declaration of your function in the header file. The implementation is in the cpp file. The prototype contains the name and the parameter types of the function.

 
You have 50 words left!