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
WAP TO PRINT SUM=1!+2!+3!+4!+....N! #include stdio.h> #include conio.h>   void main() {                    int n,i;                    float sum=0,fac


Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw

We want Guys For Job in Gaming Tracks Company for a mobile game developing Project Description: I want a team of game developers for life-time as mobile dev team in my compan

Question: (a) What is a function? Are functions needed when writing a C program? (b) State one of the advantages to the use of functions. (c) What do you meant by underst


write a program that would accept the radius of the sphere and return its surface area.

#padovan string   program in java // aakash , suraj , prem sasi kumar kamaraj college program 1 : package test.padovanstring; public class PadovanString {

C Program for FUNCTION OF MERGE #include conio.h> #include stdio.h> char cot(char a[],char b[]); void main() {           char a[50],b[50];           clrscr()

Write a program to create a binary file and store the following data "hello", 0x0030,'1', 1.234  Using visual studio examine the binary file and note how the day is stored   Answe