IE 2060 Lecture : Lecture12 Ch7 OOP
Document Summary
C#. net is an object-oriented programming (oop) language, as are most modern programming languages. Objects are data structures which represent "things" we want to work with, like: Data structure objects - arraylists, datasets, stacks. Objects store data (through properties), contain methods (functions) that perform actions, and generate events that can be caught by event handlers. The idea of objects is to place all the code and data for a particular set of functionality into a single container. The principle of encapsulation in oop requires that private data and code not be accessible or alterable from the outside. The object class should only make public what the outside world needs to use its internal code and data are hidden. This is good programming practice, ensuring modularity and independence of code components, simplifying the debugging process, and removing the possibility of code trying to access private object methods and properties which may no longer exist.