IMPORTANT Flashcards
Identify an attribute in the lizard class?
Speed, mass or size (features of the class you are creating so it could be model if it was a car)
Lizard is a class, describe what is meant by a class?
A class is a template/blueprint that is used to make objects. Classes do this by defining methods and attributes which make up the class.
What is meant by inheritence?
Where a child class takes methods and attributes from a parent class. All of the child’s class’s and attributes do not have to be from the parent class as they can have their own ones too. They can also change details of the methods and attributes they inherit.
Explain one way the game’s developers might use inheritance for Livid Lizards.
The lizard class could be used as the base class and different breeds of lizards could be created by inheriting atribues and methods from the lizard class
BRP
Branches if it is 0 or positive
BRZ
Branches if it is 0
BRA
Always branches
What is BRA used for?
When BRP or BRZ is not met it can branch somewhere else
What is a secondary key?
They identify rows in a table and thus can be used alternatively as primary keys to locate specific data
What are secondary keys used for
Retrieval purposes as they can make retrieval quicker and easier
How to delete whole rows from sql
Do not use a where clause so all values will be deleted
How to delete specific rows from sql
Use where clause to specify conditions that need to be met
Can you delete specific columns from sql
No
What does ten dat 10 do?
Creates a variable/identifier that has a numeric value of 10
What is the computer misuse act?
legislation that criminalises unauthorised access to computer systems and data, and the damaging or destroying of these