MIS 304 Lecture Notes - Lecture 16: Init
Document Summary
Object-oriented programming (oop): centered on creating objects. Objects are created from abstract data types that encapsulate data and functions together. Any program that needs an object"s services can use them. Encapsulation: the combining of data and code into a single object. An object"s ability to hide its data attributes from code that is outside the object. External code can only interact with an object"s methods. Procedures operate on data items that are separate from the procedures. Data items are passed from one procedure to another. Object: a software entity that contains both data and procedures. Functions that perform operations on the object"s data attributes. Public methods: methods that can be accessed by entities outside the object. Part of the object"s private, internal workings. External entities do not have direct access to the object"s private methods. Class definition: a set of statements that define a class"s methods and data attributes. Programmers commonly organize their class definitions by storing them in modules.