Cursos
Cursos
Compilador de Código
Compilador de Código
Discutir
Preços
Teams
Fazer login
Registrar
Menu
Q&A Discussões
Pesquisar
Pesquisar
Faça uma pergunta
Faça uma pergunta
Write a program using getter and setter method in java
playground
0 Voto
2 Respostas
11th Aug 2017, 6:13 PM
bhavsar aman
can enyone explain to me why we are use setter & getter
java
1 Voto
4 Respostas
26th Oct 2017, 6:30 PM
Asmaa Mogahed Khalifa Osman
How to solve one to many classes using getter &setter
&class
getter&setter
method
object
0 Voto
1 Resposta
7th Aug 2018, 6:03 PM
Ashiful Islam
How to solve one to many classes using getter &setter
&class
getter&setter
method
object
0 Voto
1 Resposta
7th Aug 2018, 6:08 PM
Ashiful Islam
Is getter and setter are same as Scan & print tespectively?
classes
java
1 Voto
2 Respostas
22nd Sep 2017, 4:27 PM
akash
Hi guys. Could u anyone explaine me about getter and setter?
java
1 Voto
2 Respostas
27th Nov 2016, 1:25 PM
Vinoth Balendran
What is Getter and Setter method in Java? How they can be used?
getter
java
setter
use
3 Votos
2 Respostas
13th Jun 2018, 2:52 PM
Pradeep Anand
where to find the concept of getter and setter in C++
and
c++
getter
in
setter
0 Voto
1 Resposta
15th Jan 2019, 2:41 PM
Sm Developer
Can Anyone Explain What is getter and setter with an example ?
classes
java
1 Voto
2 Respostas
3rd Feb 2017, 7:28 AM
Abhijith R
can anyone explain getter and setter in detail..i am not able to understand plzz..??
classes
java
0 Voto
5 Respostas
3rd Jul 2016, 8:46 AM
Chaitanya Pandit
Getter and setter , how to use ? What is the need ?
classes
0 Voto
2 Respostas
25th May 2018, 5:21 PM
Anshul
plz explain the getter and setter I am not understand these concept
classes
java
0 Voto
2 Respostas
4th Oct 2016, 2:22 PM
sandhyarani
Could someone explain what a getter and setter does in really simple words?
getter
setter
1 Voto
2 Respostas
8th May 2017, 3:21 PM
Tina
Plzz anyone tell me what is the error in this getter and setter program !!
error
getter
help
java
program
setter
4 Votos
3 Respostas
25th Aug 2017, 7:45 AM
Vaibhav Singh Sikarwar
How does the getter and setter will protect the data? I don't understand.
classes
java
1 Voto
1 Resposta
19th Jul 2016, 10:22 AM
Jack
Why we have to exactly use get and set key words to write getter and setters methods?
classes
java
0 Voto
6 Respostas
19th Oct 2016, 3:30 PM
Giridhar Gowri
Staying Alive properties
getter
property
setter
0 Voto
5 Respostas
8th Jun 2021, 11:35 AM
Lee 4 Code
what is the use of this.color in reference to the topic getter and setter???
classes
java
0 Voto
2 Respostas
11th Sep 2016, 7:47 AM
Nikhil Mittal
Can We Use Getter & Setter In C++ also,Just Like C# & Java ??
c#
c++
classes
functions
java
methods
output
sololearn
this
0 Voto
1 Resposta
11th Jul 2019, 3:07 AM
Anurag Singh
Hello everyone! Can I create getter or setter myself with other name? ex. : recColor(); plaColor();
getter
java
0 Voto
1 Resposta
18th Mar 2023, 7:23 AM
Saidazim
If a constructor is used in a program in Java is getter and setter still relevant to use?
java
0 Voto
3 Respostas
5th Oct 2020, 4:32 PM
Sunday Othniel
Is there a way in which we can access private variables of a class in java without setter and getter methods?
java
oop
4 Votos
6 Respostas
25th Jan 2018, 1:07 PM
Santosh Teurwadkar
[Solved] Can we build a method to call different setter base on the arguments?
data_hiding
getter
python
setter
2 Votos
11 Respostas
18th Nov 2023, 2:55 AM
Wong Hei Ming
can someone help whats wrong with this constructor? and how can i make a getter method of it?
c++
0 Voto
2 Respostas
17th Feb 2019, 7:16 PM
Hayko
Why do we set this.color = c and then ignore it in the main class?
getter
java
setter
0 Voto
3 Respostas
22nd Apr 2019, 5:08 PM
Mike Smith
Я не очень понял атрибуты getter, setter и конструкторы по Java. Кто нибудь может мне объяснить? Пожалуйста!
getter
setter
venicle
2 Votos
2 Respostas
4th Sep 2020, 11:44 AM
Jasulan Kanaibaev
Is there Syntax ErroR.
getter
java
setter
0 Voto
3 Respostas
9th Jun 2022, 3:31 AM
We Doru
Why is .getter needed if @property already defines a "getter" method?
getter
properties
python
4 Votos
1 Resposta
23rd Oct 2016, 9:09 AM
Jose Luis de la Rosa
So... um... GETTER and SETTER are just public methods, what contain possibility to modify and show us private variables?
classes
java
0 Voto
1 Resposta
20th Dec 2016, 7:21 AM
Nochains
Why are global variables a bad idea?
bad
class
encapsulation
getter
global
object
oriented
setter
static
variables
24 Votos
21 Respostas
29th Sep 2018, 8:33 AM
Sonic
Why doesn't this program execute?
getter
java
setter
spinoza
2 Votos
6 Respostas
13th Oct 2017, 9:31 PM
Spinoza
Java Classes (getters and setters)
class
getter
java
setter
0 Voto
4 Respostas
8th Apr 2019, 9:31 PM
Albert Yakubov
Getter-setter or Constructors ??
classes
constructors
getter
java
setter
4 Votos
6 Respostas
6th Mar 2018, 4:42 AM
Shruti Singh
Can I declare members in abstract class? Should I declare a virtual getter / setter method for the member in that class?
abstract-classes
c++
virtual
0 Voto
2 Respostas
23rd Nov 2016, 1:46 PM
Marcell Juhasz
How do getters and setters protect the data of a java class?
bean
classes
getter
setter
0 Voto
3 Respostas
5th Apr 2018, 5:38 PM
knave
question from a java newbie
getter
java
self-learning
setter
2 Votos
3 Respostas
17th Oct 2017, 4:02 AM
oyl
Do getters and setters in swift work similarly to those in Java?
getter
methods
properties
setter
swift
8 Votos
3 Respostas
5th Nov 2016, 7:09 PM
Joe
getColor
classes
getter
java
setter
2 Votos
2 Respostas
3rd Jan 2017, 10:41 PM
Jackson Simpson
Why is it giving this error??
class
getter
object
php
setter
0 Voto
3 Respostas
13th Jun 2019, 2:58 PM
Niloy19
How you define getters and setters in C++?
c++
classes
getter
oop
setters
4 Votos
2 Respostas
4th Apr 2017, 6:08 AM
देवेंद्र महाजन (Devender)
Eshop.java
arraylist
classes
getter
java
setter
4 Votos
1 Resposta
8th Jun 2017, 5:46 PM
देवेंद्र महाजन (Devender)
Where did I go wrong?
constructors
getter
java
setter
sololearn
0 Voto
1 Resposta
16th Jan 2021, 3:06 PM
Name
Can any One help me , why this program is not working..?
class
getter
java
methods
setter
1 Voto
1 Resposta
21st Feb 2019, 6:03 AM
Krishna Prasad
Java. Braces in the output! How to remove?
braces
getter
java
output
print
setter
1 Voto
3 Respostas
18th Jun 2018, 12:59 AM
DIY Mods
Is there a way in c++ to directly access balance as a getter without having to do a function call but only be able to modify it through related methods?
c++
encapsulation
0 Voto
2 Respostas
8th Mar 2016, 6:18 PM
Josie Thompson
please explain this to me
getter
java
reference-types
setters
value-types
0 Voto
1 Resposta
25th Dec 2018, 11:30 AM
Fe Di
__get __set or individuals getters and setters?
attributes
getter
magic-methods
php
php7
setter
1 Voto
1 Resposta
21st Apr 2018, 9:14 PM
Thiago Martins Saraiva
Does this code make my Number "save"?
es6
getter
javascript
object
private
setter
0 Voto
2 Respostas
23rd Oct 2018, 12:00 PM
Mitch
Constructors and "Setters" // JAVA
class
classes
code
constructor
getter
java
method
methods
oop
programming
setter
3 Votos
9 Respostas
13th Jan 2017, 8:18 PM
Daniel Stanciu
Why does my practice example output null?
getter
help
java
null
question
setter
sololearn
1 Voto
2 Respostas
3rd Mar 2018, 4:18 PM
Jaren Dogan
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
< Anterior
1
2
Próximo >
Quente hoje
How many days will It takes to completely learn front end
4 Votes
SQL
3 Votes
JAVA PROGRAMMING
2 Votes
HTML/CSS questions
0 Votes
Solution to solving this bugged problem
2 Votes
What Does Pseudo Elements Mean.
2 Votes
IMAGE
0 Votes
Html
1 Votes
member initializer list : order of evaluation
0 Votes
How can I continue with my goal if I lost all my lives?
0 Votes