COMPSCI 1MD3 Lecture Notes - Lecture 8: Data Corruption, Code Reuse, Procedural Programming

42 views4 pages

Document Summary

Chapter 8: object orientated programming: re-cap of past chapters, flow control structures (loops, variable assignments, swapping unique to python of various variables) (assignment. Not anymore efficient, just cleaner notation: function and caller. Def : the header of the function. Terminates either by falling off the bottom or return. Python allows you to return several values: functions can have multiple inputs and assignments, ch. 1 5 was procedural programming (programs can be just procedural like c) Having multiple statements and function calls with ordered statements. Most program problems are with unintended data corruption: 2) methods. Can move a point coordinate through methods. Enscapulation-the idea of need to know basis" only acess to data needed. Manages the complexity and makes it easier to manage each part: 2. Having the same name for something similar. E. x. same symbol for adding integers or for adding float numbers. Doesn"t have to be oo programming: 3. E. x. class of rectangles and a class of squares.

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