Chapter 1 - Objects and classes (learning outcomes) Flashcards

1
Q

explain the relationship between objects, classes and the problem domain

A

a problem domain is a specific problem or piece of software that we want to achieve.
in order to do this we will need to create objects that are part of the problem domain.
A class describes an object but without any specifics creating an instance of a class allows us to describe the object accurately

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

give examples of how objects in the real world have attributes and operations

A

a car has attributes such as colour and horse power and some of its operations might be reverse or drive forward beep horn

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

explain the idea of a data type, and how it relates to valid values of parameters and returned values

A

A data type describes the data we are dealing with this could be an int or a string. When specifying parameters and return values we must explicitly mention what data type is being used

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

write a header for a method then its signature

A

header = int printNumber(int number)
signature = printNumber(int)

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