OO is really about things like encapsulation, polymorphism, inheritance, composition, etc. It abstracts by model. 2/11
Privacy and real methods will still have value. But limited. Focused on the data of the class. Bookkeeping would be difficult otherwise.
-
-
I.e., preventing raw access to your dynamic array, lest someone forgets to keep the internal count fresh.
-
In that way, UFCS bothers me as it removes subtle queues about what a function can do or what access it has.
- Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.