CMPSC 122 Chapter Notes - Chapter 2: Unified Modeling Language, Software Engineering, Code Reuse

57 views5 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents