Top "Member" questions

A member is an element of an object in the object-oriented programming paradigm.

cout is not a member of std

I'm practicing using mulitple files and header files etc. So I have this project which takes two numbers and then …

c++ io std member cout
invalid use of non-static member function

I have something like this: class Bar { public: pair<string,string> one; std::vector<string> cars; …

c++ function constants member non-static
C++ callback using class member

I know this has been asked so many times, and because of that it's difficult to dig through the cruft …

c++ function callback member
An object reference is required to access a non-static member

I'm having this error come up and I'm not sure why... I've tried to look it up, people are saying …

c# .net oop member static
php static function

I have a question regarding static function in php. let's assume that I have a class class test { public function …

php class static member
Static nested class in Java, why?

I was looking at the Java code for LinkedList and noticed that it made use of a static nested class, …

java class static member
Instance variables vs. class variables in Python

I have Python classes, of which I need only one instance at runtime, so it would be sufficient to have …

python class variables static member
How do I access static member of a class?

I am trying to access static member of a class. my class is: class A { public static $strName = 'A is …

php class oop static member
"Incomplete type" in class which has a member of the same type of the class itself

I have a class that should have a private member of the same class, something like: class A { private: A …

c++ types member private-members incomplete-type
getter and setter for class in class c#

Assuming we have a class InnerClass with attributes and getter/setter. We also have a class OuterClass containing the InnerClass. …

c# class member setter getter