I learned in college a while ago that I should always use getters and setters to access values in an object and I heard it is for security. p>
So I ended up always using and seeing other people using, until I started programming Android and I...
Note: Question I saw in the SO in English , but I found it interesting to post here (because we do not have many C questions yet):
Because in C language, does this code print "true"?
#include <stdio.h>
int main(void) {
int reais...
When working with object-oriented languages such as Java and C # we have a whole process of analysis and design available that helps us know how to design the application in order to write more cohesive, less coupled and easier to maintain codes...
It has a lot of explanation of what is callback by the net and even a few sparse examples, but nothing that explains in practice and in detail a really important use (I did not find it).
I already understood a bit of how to use and even mad...
The algorithm teacher asked us to write a code to play a simple old game in Java. And I already have everything ready, but I'm not too happy with the solution I've got to validate who won the game.
I've done a series of if and elseifs to chec...
I was doing an exercise for the university using the class Scanner and something unusual happened, watch the code.
for(int i = 0; i < 11; i ++){
//problema(esta pulando a escolha de um dos jogadores, precisamente o jogador 1)
Sys...
What is the difference between static and self ? Exemplify with situations that justify their different uses. What does this have to do with late static binding ?
A question that has everything to do with the name of this site.
We know that one of the most commonly used examples for demonstrating the execution stack of a program is recursion. A recursive function must have: stop condition and recursio...