Top "Member" questions

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

What is the default value of a member in an array?

I instantiate an array like this: int array[] = new int[4]; What are the default values for those four members? Is …

c# arrays default-value member
Accessing a protected member variable outside a class

I'm querying for the ID of a field by accessing a class function which someone has already put in place. …

php class variables member protected
Swift Error: Ambiguous reference to member 'subscript'

I'm new to coding and picked up some open source project to get the idea. I'm getting the error: Ambiguous …

swift member self subscript let
class variables is shared across all instances in python?

I started coding in python a week ago, it is my mistake i started coding using oops,classes and objects …

python class global-variables instance-variables member
PowerShell how to add something on parsed JSON?

I want to add something in my parsed JSON using PowerShell. My code: function ConvertFromJson([string]$file) { [System.Reflection.Assembly]::…

json powershell member
Visual Studio 2010 C# "already defined a member with same parameter types error."

im having a problem in visual studio it keeps saying i have defined a member with same parameter types. Im …

c# types parameters member defined
How to initialize a shared_ptr that is a member of a class?

I am not sure about a good way to initialize a shared_ptr that is a member of a class. …

c++ boost initialization shared-ptr member
Immutable Object with ArrayList member variable - why can this variable be changed?

I have got one class with various member variables. There is a constructor and there are getter-methods, but no setter-methods. …

java object immutability member getter-setter
Nested Class Definition in source file

If I have a nested class like so: class MyClass { class NestedClass { public: // nested class members AND definitions here }; // main …

c++ inner-classes member
how to initialize a static struct in c++?

I have managed to initialize correct any variable of basic type(i.e. int, char, float etc) but when declaring …

c++ static struct initialization member