programming languages Flashcards
1
Q
object
A
- instintated from class
2
Q
method
A
- action object performs
3
Q
attribute
A
- value held by the object
4
Q
encapsulation
A
- used to hide the values/internal state of an object
- preventing direct access/preventing values from being changed
- encapsulated attributes can only be accessible or changed via the methods provided by the object
5
Q
polymorphism
A
- when a subclass alters its inherited methods
- either overloading or overriding
overriding - a method is redefined in a subclass with the same name and the same arguments
overloading - method is defined in the subclass that has the same name, but different arguments to a method defined in the superclass