Programing Concepts Flashcards
How do you define the roles of your characters (the roles of your actors)?
By creating ‘classes’.
Programing is like..?
Being a playwright.
What does a ‘class’ do?
It describes how something will behave and act, as well as it’s characteristics.
How do you store the bits of information necessary to describe the ‘classes’?
By using ‘variables’.
What is a ‘variable’ used for?
It is used to store or point to data.
What type of data do ‘variables’ contain?
Characteristics of the ‘classes’.
How do you describe the actions that the ‘classes’ perform?
By using ‘methods’.
What is a ‘method’?
A ‘method’ in a ‘class’ is a set of instructions that once are called, they are performed as behaviors.
What is ‘class inheritance’?
It is a way to define a ‘class’ that is based on another ‘class’.
What are the names of the ‘classes’ that are being inherited from?
‘parent’ or ‘super class’.
What are the names of the ‘classes’ that are inheriting?
‘child’ or ‘subclass’.
If you want two ‘classes’ to share particular ‘variables’, what can you do instead of defining the same ‘variables’ in both ‘classes’?
You can create a brand new ‘class’, define those ‘variables’ in this new ‘class’, then you specify those ‘classes’ you wish to share those ‘variables’ to inherit from the new ‘class’, or in other words, to be ‘subclasses’ of the new ‘class’. The same can be used from ‘methods’.
What is the name of an ‘instance’ of a ‘class’?
‘Object’.
In a Play, what would these ‘objects’ be?
Actors.
What are the parts of code that will interact with each other?
The ‘objects’.