CSCI 1030U Study Guide - Midterm Guide: Object-Oriented Programming, Call Waiting, Iterator
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.