What does it mean to declare a function as a static, C/C++ Programming

(c) A static member function can access static member data only, static member functions and functions and data outside the class. A static member function may be called, even while a class is not instantiated. A static member function can't be declared virtual. A static member function cannot encompass access to the 'this' pointer of the class.

 

Posted Date: 3/21/2013 7:38:09 AM | Location : United States







Related Discussions:- What does it mean to declare a function as a static, Assignment Help, Ask Question on What does it mean to declare a function as a static, Get Answer, Expert's Help, What does it mean to declare a function as a static Discussions

Write discussion on What does it mean to declare a function as a static
Your posts are moderated
Related Questions
C program to demonstrate Pointer to string: void main() {                 int a;                 char str[]="hello how are you?",*ptr_str;                 ptr_str=&

2 flowcharts, pseudocode for each (at least 4 algorithms), and code for either a stack or a queuestion..

Write a program IdentyfyWordsMain.java reading a fi le (like HistoryOfProgramming) and divide the text into a sequence of words (word=sequence of letters). Save the result in a new

explain me for loop

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Aim: To implement a program to handle stack overflow, underflow and odd number exception using Exception Handling. Code: #include #include #include #define MAX

Program: Write a program that predicts users' age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an

algorithm to prepare mark sheet of a student by inputing name,branchcode,semester,register no,5 marks of students and total mark of student

#C Why don''t online compilers support the header file? What can I do to resolve this? PS. I have tried , does''nt work either. Thannk in advance.

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes