This tag refers to members of a class in object-oriented language.
I've got a class that has a couple of objects as member variables. I don't want the constructors for these …
c++ constructor class-members object-constructionThis is a simplified example to illustrate the question: class A {}; class B { B(A& a) : a(a) {} A&…
c++ reference class-membersBefore C++11, we could only perform in-class initialization on static const members of integral or enumeration type. Stroustrup discusses this …
c++ class c++11 initialization class-membersMy goal is a class like: class UserInformation { public: userInfo getInfo(int userId); private: struct userInfo { int repu, quesCount, ansCount; }; …
c++ class function struct class-membersI would like to create a class in Python that manages above all static members. These members should be initiliazed …
python class-membersIn the following code, when the ctor of X is called will the ctor of A or B be called …
c++ initialization class-membersI'm designing a dynamic buffer for outgoing messages. The data structure takes the form of a queue of nodes that …
arrays vba class-membersConsider the following code C++: #include<iostream> using namespace std; class Test { int &t; public: Test (int &…
c++ oop class-membersBecause of this issue here, I'm trying to write a custom JsonConverter that handles cases where you subclass a list …
c# reflection subclass base-class class-membersShort version: I have an abstract class A. It has a method that needs to know the value of a …
c# inheritance static class-members