Programming Flashcards

1
Q

Encapsulation

A

Concept that all the states of the object and the methods necessary to create, change, or delete are the sole responsibility of the object and are internal to the object

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

Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it

A
  • reduce collision
  • maintain independence
  • easier to write your own code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Parameter

A

Special kind of variable that is defined in the method header and used inside the method to represent the value that was fed into the method call

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

Argument

A

Is the value that is supplied to the method when it is called

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

Inheritance single/multiple

A

Inheritance enables new objects to take on the properties of existing objects

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

Composition

A

Object doesn’t exist without the other one

Child object is created and continues to exist while the parent object exists

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

Information hiding

A

Concept that a;l data within the object should be hidden or inaccessible to any other object except through a request to a method of the object for such information

Also hides the mechanisms where data is changed from external view

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