CMPSC 122 Chapter Notes - Chapter 2: Unified Modeling Language, Software Engineering, Code Reuse
Document Summary
Objects are the primary actors in oop. Each object is an instance of a class. Instance variables are also known as data members. Methods are also known as member functions. Software should be able to handle unexpected inputs. Programs should recover gracefully from incorrect input. In life-critical applications, software errors in software that is not robust can lead to injury or death. Software should be able to evolve to changing conditions. Software should be portable, meaning it can run on different hardware and operating systems. Code from one program should be usable as a component of other systems. Code reuse should be done very carefully. Different components of software are divided into separate functional units. A module is a collection of closely related functions and classes defined together in a single python file. Robustness greatly increased due to easier testing. Bugs can be traced to specific systems, which can be fixed in isolation.