Chapter 1 - Objects and classes (learning outcomes) Flashcards
explain the relationship between objects, classes and the problem domain
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
give examples of how objects in the real world have attributes and operations
a car has attributes such as colour and horse power and some of its operations might be reverse or drive forward beep horn
explain the idea of a data type, and how it relates to valid values of parameters and returned values
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
write a header for a method then its signature
header = int printNumber(int number)
signature = printNumber(int)