P
P
piffo2020-05-20 23:04:56
C++ / C#
piffo, 2020-05-20 23:04:56

Unity c# encapsulation?

I write scripts under Unity (more precisely, while I'm still learning). Studied such a topic as encapsulation. I heard this saying: "Encapsulation is a forced phenomenon that programmers came up with so that their programs do not break when supported by other developers." Do I understand correctly that encapsulation is not useful when working alone?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-05-20
@piffo

No, you misunderstand. And the statement is honest.
Encapsulation can be applied not only to program code, but also to entities as such.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question