📜 ⬆️ ⬇️

How to stop confusing articles in English (in OOP terms)

When talking about "class description" - use the article "a" or "an". When we deal directly with a concrete embodiment of an object (Instance) - we say “the”. It's simple :)

the_Apple = new an_Apple();

By the way, the same principle can be applied in the opposite direction, so as not to confuse the descriptions of classes with the objects themselves.

')

Source: https://habr.com/ru/post/17675/


All Articles