Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
holycode887y@Sydochen it's referring to girls saying they are younger than they actually are. The age of the girl represented by this class is 28 (you can't see it directly, because it's private), but when you asks her (via her public method) you get 20, like if she told you so.
-
@vincetrot ok that part makes sense, and I pretty much got that can the get go, but why do people find that to be funny?
public class Girl{
private int age = 28;
public int getAge(){
return 20;
}
}
undefined