click below
click below
Normal Size Small Size show me how
Software Dev Fund 2F
MTA - Software Development Fundamentals 2F
Term | Definition |
---|---|
return type exception | this is when a method declares that it will return a certain type of data, like an int, and the code has it set up to return a property of a different type of data, like a String; example: public int getScore(){ return "You win!"; } |
C# getters and setters | are methods that are associated with a property in a C# program that allow the value for the property to be accessed or changed; this example below automatically sets up a way to "get" and "set" the value: public int fuellevel { get; set; } |
upcast | is when an instance of a more complex object can be cast back to its simpler super class type; an example would be to cast a FireTruck instance to a basic Truck instance; this can only be done when inheritance is involved; |
downcast | is when an instance of a simple object can be treated as if it were an instance of a more complex object; this can only happen if the simple object instance used to actually be an instance of that more complex object; (Ferarri)mycar |
(Object)messagestring | this is upcasting a String property to a generic Object; the Object class is a simpler basic class than a String class object |
over-ridden method | this is when you have a base class with a method and a child class with that exact same named method (and same signature); the method that actually gets called depends on whether it's a parent class instance or a child class that calls the method |
over-loaded method | when you have methods with the exact same name but that take different numbers and/or different types of parameters; example: doScore( ); doScore( int bonus); |
derived | When a class inherits functionality from a base class it is called a ______________ class |
base | The class that a child class inherits functionality from and to build further on is called the ____________ class |
normalization | this produces databases with smaller tables with smaller rows, that are easier to maintain and change, and that are faster to search and sort |
cardinality | this is uniqueness, for databases it means eliminating redundancy in the tables |
stack | the ONLY properties that are stored here are PRIMITIVE values that are LOCALLY declared inside methods |
heap | all GLOBAL properties are stored here even if primitive, as well as all properties that are OBJECTS even if locally declared inside a method |
String | String class instances are objects; they are NOT primitive values |
protected | the access modifier that enables the enclosing class to see properties and also any derived (child) classes to see those properties; it is NOT as restrictive as "private" |