Programing Concepts Flashcards

0
Q

How do you define the roles of your characters (the roles of your actors)?

A

By creating ‘classes’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Programing is like..?

A

Being a playwright.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a ‘class’ do?

A

It describes how something will behave and act, as well as it’s characteristics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you store the bits of information necessary to describe the ‘classes’?

A

By using ‘variables’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a ‘variable’ used for?

A

It is used to store or point to data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What type of data do ‘variables’ contain?

A

Characteristics of the ‘classes’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you describe the actions that the ‘classes’ perform?

A

By using ‘methods’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a ‘method’?

A

A ‘method’ in a ‘class’ is a set of instructions that once are called, they are performed as behaviors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is ‘class inheritance’?

A

It is a way to define a ‘class’ that is based on another ‘class’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the names of the ‘classes’ that are being inherited from?

A

‘parent’ or ‘super class’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the names of the ‘classes’ that are inheriting?

A

‘child’ or ‘subclass’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

If you want two ‘classes’ to share particular ‘variables’, what can you do instead of defining the same ‘variables’ in both ‘classes’?

A

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’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the name of an ‘instance’ of a ‘class’?

A

‘Object’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In a Play, what would these ‘objects’ be?

A

Actors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the parts of code that will interact with each other?

A

The ‘objects’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the characteristics of ‘objects’?

A

The ‘variables’ and the functionality defined by the ‘methods’.

16
Q

Can you create more than one ‘object’ from a class?

A

Yes.

17
Q

Can you assign different values for the same ‘variable’, on two different ‘objects’ from the same ‘class’?

A

Yes.