Samuel Mayol

Greenhorn
+ Follow
since May 30, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Samuel Mayol



Hello Cassandra Yuting Chin,

I have a question. My 9-year-old really enjoys coding, but the challenge is keeping him motivated to stick with a project week after week. He’s talented, but often gets distracted adding new features instead of focusing on completing the core parts of the code.

Also, how would you recommend I start introducing my 5-year-old to the world of coding in an engaging way?

Thank you!

Sam
2 weeks ago
Hello Cassandra Yuting Chin,

I have a question. My 9-year-old really enjoys coding, but the challenge is keeping him motivated to stick with a project week after week. He’s talented, but often gets distracted adding new features instead of focusing on completing the core parts of the code.

Also, how would you recommend I start introducing my 5-year-old to the world of coding in an engaging way?

Thank you!

Sam
2 weeks ago

Rajeev Motha wrote:You may use the constructor to set values at point of instantiation. However, an object may have many attributes that 1) you may not know at the point of instantiating or 2) may need to be changed after instantiating.
For this you need setters.



I am going to provide you a link with some information that I provide about this topic:

Setter, Getter and constructor in Java: http://stackoverflow.com/questions/19359548/setter-methods-or-constructors/42798426#42798426

Just click the link and you will prompted to the explanation and examples. Thank you.
8 years ago