CS 2114 Lecture Notes - Lecture 10: Compile Time, Substring
Document Summary
Stacks length() for strings, substring(int, int), charat(int), pow(double, double), abs(double), max(double, double), min(double, double), parseint(string), length for arrays), t[] array, node firstnode. Rework methods, practice problems, and reading quizzes code! actual object"s type to determine which method implementation to call. time, so at compile time the variable type is checked to make sure that any methods invoked actually exist. Polymorphism is when the type of the instance is determined at run. Test i will be wednesday, february 21 during class. See w, 2/14 lecture slides for test information. ***note: labs will be take home the week before spring break. Each method is being put on a stack. Nodes called in the main and popped off when the method is completed. Slight variations on how to implement stacks. For arrays, let the first entry be the bottom of the stack and this be the. Top of the stack (some people have the first open space as the top of the stack).