113 Study Guide - Midterm Guide: Programming Paradigm, Member Variable, Mutator Method

8 views5 pages

Document Summary

Many object-oriented programming languages: are class-based, which means objects are instances of classes, and is typically also determine their type. Classes: define the data format and available procedures for a given type of object, may contain data members and member functions themselves also called class methods. Each object is said to be an instance of a particular class. Procedures in object-oriented programming are known as methods, variables are also known as: fields, members, attributes, or properties. Class variables belong to the class as a whole, there is only one copy of each one. Instance variables or attributes: belong to individual objects and every object has its own copy of each one. Member variables: refer to both the class and instance variables that are defined by a particular class. Class methods: belong to the class as a whole and have access only to class variables and inputs from the procedure call.