Top "Member" questions

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

"No appropriate default constructor available"--Why is the default constructor even called?

I've looked at a few other questions about this, but I don't see why a default constructor should even be …

c++ constructor member default-constructor
How to access a private member inside a static function in PHP

I have the following class in PHP class MyClass { // How to declare MyMember here? It needs to be private public …

php class static private member
C++ Static Const Member Variable Usage

Say that I have a class that requires a few constants to function. Several member functions require use of these …

c++ static constants member
If I delete a class, are its member variables automatically deleted?

I have been researching, and nothing relevant has come up, so I came here. I am trying to avoid memory …

c++ class variables member delete-operator
Why can't we initialize class members at their declaration?

I wonder if there is a reason why we can't initialize members at their declaration. class Foo { int Bar = 42; // this …

c++ class constructor initialization member
calling member functions from within another member function of the same class in C++, objective C

Consider the following: class A{ //data members void foo() { bar();//is this possible? or should you say this->bar() …

c++ function static-methods member access-specifier
Declaring member function in interface

Firstly I am pretty new to C#. I would like to have an interface declare a member function like in …

c# interface member
Constructor for '' must explicitly initialize the reference member ''

I have this class class CamFeed { public: // constructor CamFeed(ofVideoGrabber &cam); ofVideoGrabber &cam; }; And this constructor: CamFeed::CamFeed(…

c++ reference member
In C: How to set a pointer to a structure member that is an array?

How should I write my code to example a specific array index of an array that happens to be a …

c pointers structure member dereference
Getting collection of all members of a class

I want to get the collection of all the members that are present in a class. How do I do …

c# reflection member