what are member function??
what is the use of :: in them ??
what are static and non static member function??
Abhinisha 0 Light Poster
Recommended Answers
Jump to Postinstance of the class' member function is required to call the non-static member function
Maybe I misinterpreted that, non-static member functions can call both static and non-static member functions. Static member functions can only call other static member functions and use static class data.
Jump to PostThe "this" keyword refers to the instance of the class which "this" is being called in. For example, if you were to use "this" in the Foo class, then "this" is representing an instance of Foo.
Let's suppose that class Foo has another class member int fubar, and we want …
All 7 Replies

MonsieurPointer
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

MonsieurPointer
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Abhinisha 0 Light Poster

MonsieurPointer
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.