Top "Getter" questions

A getter is a public accessor method, used in object-oriented programming, which returns the value associated with a private member of a class.

What is the best way to give a C# auto-property an initial value?

How do you give a C# auto-property an initial value? I either use the constructor, or revert to the old …

c# constructor getter setter automatic-properties
How do getters and setters work?

I'm from the php world. Could you explain what getters and setters are and could give you some examples?

java setter getter
How can we generate getters and setters in Visual Studio?

By "generate", I mean auto-generation of the code necessary for a particular selected (set of) variable(s). But any more …

c# visual-studio setter getter
Why use getters and setters/accessors?

What's the advantage of using getters and setters - that only get and set - instead of simply using public …

java oop setter getter abstraction
Set and Get Methods in java?

How can I use the set and get methods, and why should I use them? Are they really helpful? And …

java methods encapsulation setter getter
View's getWidth() and getHeight() returns 0

I am creating all of the elements in my android project dynamically. I am trying to get the width and …

java android android-layout getter
Getters \ setters for dummies

I've been trying to get my head around getters and setters and its not sinking in. I've read JavaScript Getters …

javascript setter getter
Best way of invoking getter by reflection

I need to get the value of a field with a specific annotation, So with reflection I am able to …

java reflection getter
Looking for a short & simple example of getters/setters in C#

I am having trouble understanding the concept of getters and setters in the C# language. In languages like Objective-C, they …

c# setter getter getter-setter
Why JSF calls getters multiple times

Let's say I specify an outputText component like this: <h:outputText value="#{ManagedBean.someProperty}"/> If I print a …

performance jsf el getter