Oop intro(1.2.4 e) Flashcards
What is a paradigm?
a way of thinking
a change of paradigm is a change in the way you think
Programming languages in paradigms
different programming languages live in different paradigms some live in multiple
What are classes?
templates that define the behaviour
What are objects?
manifestations (instance) of a class
What are the two main aspects of classes?
attributes
methods
What are attributes?
what data is stored and how it is stored (similar to variables)
What are methods?
how the class behaves (similar to subroutines)
What should you do before coding a class when designing it?
draw a diagram
What does private attribute/method mean?
that the given attribute or method cannot be accessed from outside the class definition
What does public attribute/method mean?
that the given attribute or method can be accessed from outside