Corsi
Corsi
Compilatore di codice
Compilatore di codice
Discuti
Prezzi
Squadre
Accedi
Registrati
Menu
Discussioni Q&A
Cerca
Cerca
Fai una domanda
Fai una domanda
Why do we need Setters and getters when we can use "=" and "return"?
gets
java
sets
1 Voto
3 Risposte
20th Nov 2019, 6:23 AM
Little Light ๐ฏ๏ธ
I need someone to explain to me the point of getters and setters
c#
2 Voti
2 Risposte
26th Oct 2017, 6:50 PM
kenneth Stanley
Guys can someone pliz clearly explain to me Getters and Setters in Kotlin
kotlin
0 Voti
1 Risposta
13th Aug 2022, 8:26 AM
Ayebazibwe Morris
Can any one explain me about getters and setters in detail with example
classes
java
objects
0 Voti
3 Risposte
3rd Dec 2016, 8:33 AM
CHUNDURU B M SIVA NAGA SAI
Can someone tell me what's wrong with this code it's showing error for getters and setters
getters
java
setters
2 Voti
5 Risposte
10th Apr 2018, 8:40 AM
Devansh Gupta
Why we use private over public,it can also be acces with setters ang getters
acces
also
be
can
over
private
public,it
setters
use
whywe
with
0 Voti
1 Risposta
16th Nov 2021, 7:27 PM
swamy
Why we have to exactly use get and set key words to write getter and setters methods?
classes
java
0 Voti
6 Risposte
19th Oct 2016, 3:30 PM
Giridhar Gowri
if we have getters and setters for data members in our classes then what's the point in making those data members as private?
class
gettersetter
java
method
oops
0 Voti
8 Risposte
12th May 2020, 1:52 PM
VIJAY MOURYA
What is the answer to q8 on module 7 quiz?
decorators
python
setters
0 Voti
5 Risposte
5th May 2017, 6:20 AM
draggy568
What is importance of the setter ang getter.
getters
importance
setters
0 Voti
4 Risposte
18th Sep 2020, 10:32 AM
Dennis Albonia
What is getname setname? In c++
c++
class
getters
setters
6 Voti
2 Risposte
22nd Feb 2018, 9:32 AM
Jay Jay
Error in my code: String cannot be converted to int / String cannot be converted to double
attributes
getters
setters
0 Voti
4 Risposte
22nd Dec 2017, 10:10 PM
ota.234
What happens when the variable has got first letter in capitals before using it with getters and setters?
getters
java
setters
2 Voti
2 Risposte
30th Nov 2016, 10:05 AM
Tushar Anand
Why to declare the members of class as private, and to access, we go for the setters and getters, instead we can go for public.
access,
and
as
class
declare
members
of
private,
the
to
we
whyto
0 Voti
3 Risposte
16th Nov 2021, 12:24 PM
swamy
Reverse of general getter and setter statements.
and
classes
getters
setters
0 Voti
8 Risposte
21st Dec 2019, 5:06 PM
Santosh Pattnaik
Can anyone please explain how actually Getter and Setter works?
getters
java
setters
1 Voto
3 Risposte
16th Nov 2016, 3:23 AM
Dharani Kumar
why the i m getting the error
getters
java
setters
static
2 Voti
9 Risposte
2nd Apr 2017, 6:00 AM
shobhit
If I can set an attribute on instantiation of the class by means of a Constructor, why then do I need a Setter?
constructors
java
setters
0 Voti
3 Risposte
1st Sep 2016, 4:01 PM
Promise Emmanuel
can someone please explain the use of "this" i've been seeing it a lot in getters and setters but its not fully clicking with me
classes
getters
java
setters
1 Voto
2 Risposte
24th Nov 2021, 4:44 AM
Warlock Kadash
Diff between 'set' and constructor
constructors
java
setters
2 Voti
1 Risposta
10th Jun 2017, 4:42 AM
Aditya Nandagiri
Constructor questions
constructor
constructors
java
setters
2 Voti
3 Risposte
22nd Mar 2018, 9:50 PM
Erik Horvath
Que utilidad tiene set y get en java?
getters
java
setters
0 Voti
1 Risposta
25th Oct 2017, 3:58 PM
Goib
Y would i want to use getters and setters when i can assign the value of a property from inside the main class?
java
0 Voti
1 Risposta
13th Jun 2017, 4:55 AM
suryapoojary
Another Java question: naming the "Getters and Setters," as SL called them.
classes
getters
java
setters
-1 Voto
5 Risposte
6th Nov 2017, 4:50 PM
Michael
Why is not a good idea to pass a pointer as reference in C++?
c++
pointers
reference-types
setters
0 Voti
3 Risposte
12th Mar 2019, 4:42 AM
Eduardo Perez Regin
How to get the distance between two point by using inheritance
c++
classes
inheritance
oop
setters
1 Voto
1 Risposta
1st May 2018, 11:36 AM
Asmaa El-Deeb
why i m getting w. getA() as 200 if static attributes belong to class then the outcome must be something else.
constructor
getters
java
setters
static
2 Voti
2 Risposte
28th Mar 2017, 12:35 PM
shobhit
If we initialize an array of a custom class MyClass.java like this MyClass[] myClass = new MyClass[5]; then how can we instantiate member variable of that class through its setters methods?
arrays
java
0 Voti
2 Risposte
12th Jul 2016, 1:02 PM
Saeed Ahmed Khan
I can't understand the use of getter and setters?
access
classes
encapsulation
getters
java
private
public
setters
7 Voti
5 Risposte
3rd Sep 2017, 5:20 AM
Vaibhav Singh Sikarwar
please explain this to me
getter
java
reference-types
setters
value-types
0 Voti
1 Risposta
25th Dec 2018, 11:30 AM
Fe Di
Is we can use our own method for getting and setting private attributes or methods
classes
encapsulation
getters
java
objects
private
setters
2 Voti
2 Risposte
13th Jul 2020, 3:12 AM
Akash Sharma
Fai una domanda
Fai una domanda
Fai una domanda
Fai una domanda
< Precedente
1
2
Successivo >
Popolare oggi
Where is the bug?
3 Votes
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
Pointers cpp
2 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
How to add two strings together in ts or css
1 Votes
Why canโt I use double โ in python?
0 Votes
Is pro worth the money ?
1 Votes
2 cases not correct what's the problem
1 Votes
Drawing images in java
2 Votes