OSU CSE 2221 Midterm 2 Study Guide | 75 Questions with 100% Correct Answers | Verified | Latest Update 2024
component family that allows you to manipulate natural numbers (non-negative integers). is an interface - NaturalNumber similar to a remainder, calculated using "clock arithmetic". when a negative number is "modded", it goes "counter-clockwise," returning a negative value - modulo putting highly reused methods into an interface so they're described in exactly one place - standard methods creating a single place to change code that affects many others - single point of control primary methods that are deemed being special enough to go into their own interface - kernel (primary) methods methods that are more "powerful" than kernel methods, introduced to make a component readily usable in client code - secondary methods a method that creates an instance of a class - constructor default constructor, takes no arguments - no-argument constructor returns a copy of the parameter value - copy constructor methods that are called by a specific object - instance method this - distinguished formal parameter
Document information
- Uploaded on
- January 5, 2024
- Number of pages
- 7
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers