programming languages Flashcards

1
Q

object

A
  • instintated from class
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

method

A
  • action object performs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

attribute

A
  • value held by the object
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly