Topic 1: Fundamentals of programming Flashcards
What is inheritance?
Inheritance allows one class to share the properties and method of another class, while having its own properties and methods too
What are the names given to the class being inherited and the inheriting class?
The class being inherited from- Superclass
The class that is inheriting - Subclass
What is overriding?
An overriding method has the same name method as a method in an inherited class but different implementation
Integer
A whole number, positive or negative, including zero
Real/float
A positive or negative number which can have a fractional part
Boolean
A value which is either true or false
Character
A single number, letter or symbol
String
A collection of characters
Data/Time
A way of storing a point in time, many different formats are used
Pointer/ Reference
A way of storing memory addresses
Records
A collection of fields, each of which could have a different data type. You can think of a record as a row from a table
Arrays
A finite indexed set of related elements each of which has the same data type
Variable decleration
Creating a variable for the first time, giving it a name and sometimes a data type
Constant decleration
Creating a constant a constant for the first time, giving it a name and sometimes a data type(the value doesn’t change when the program is running)
Assignment
Giving a constant or variable a value
Iteration
Repeating an instruction, this could be definite or indefinite
Selection
Comparing values and choosing an action based on those values