CSCI 1030U Study Guide - Midterm Guide: Object-Oriented Programming, Call Waiting, Iterator

217 views4 pages
23 Nov 2017
School
Professor

Document Summary

All args variable are local by value into the argument variable) Pros: - var value passed as args won"t be modified by reference . Lifo (last in first out) insertion = push ( append ) deletion = pop. (values become linked by argument variable//args as alias for value) (stack frame: space for arguments and local variables -> like a new box. remove when return) pushed to calling stack (the base) Must have exit condition (else infinite recursion: converting to an iterative equivalent (for loop, simplifying the calling stack. Object oriented programming : system of interacting object object call function. It is a type (customizable to your need) Class is a larger unit of modularity (similar to functions), can have behaviour and data, together (related to the same concept) in one place (encapsulation) The real world is object-oriented (i"m an object performing a behaviour (instruct) on you (another object) right now) Have access to instance variables of that instance.

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

Related Documents