Describe the main characteristics of static functions?

Answer Posted / atul shankhwar

The main characteristics of static functions include,

 It is without the a this pointer,
 It can't directly access the non-static members of its class
 It can't be declared const, volatile or virtual.
 It doesn't need to be invoked through an object of its class, although for convenience, it may.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

586


How do you declare A pointer to a function which receives nothing and returns nothing

719


Explain public, protected, private in c++?

563


How do you differentiate between overloading the prefix and postfix increments?

586


What is meant by the term name mangling in c++?

514






Define pre-condition and post-condition to a member function in c++?

654


Can a program run without main function?

615


Do class declarations end with a semicolon? Do class method definitions?

614


How does c++ structure differ from c++ class?

582


What is an arraylist c++?

685


What are iterators in c++?

589


What is the function to call to turn an ascii string into a long?

595


What are guid? Why does com need guids?

566


What is long in c++?

731


How do I download c++?

568