futurized
futurized
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
hmmm
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
ik ur tryna explain it to me, I am getting some of it but I'm honestly lost 😭
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
how would it even be a breaking change
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
why does readonly exist
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
why does public exist
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
if we're expected to use get set
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
what I don't get is
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
rather than the behind the scenes looking at it as a method or not
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
but how is it that much different to the programmer writing the code tryna make changes
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
so a field is like if you write
public int Age;
public int Age;
instead
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
I didn't see that yet
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
example
class Person
{
int Age { get; set; };
}
class Person
{
int Age { get; set; };
}
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
but what about when it just says { get; set; } what is the point of that Instead of writing nothing
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
i see
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
I don't get why you would write { get; set; } instead of just nothing
43 replies
CC#
Created by futurized on 6/16/2024 in #help
trying to learn encapsulation
I don't really get getters and setters either tbh but the focus rn is encapsulation since I haven't been actually taught getters and setters yet in school
43 replies