Programming Flashcards
Encapsulation
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
Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it
- reduce collision
- maintain independence
- easier to write your own code
Parameter
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
Argument
Is the value that is supplied to the method when it is called
Inheritance single/multiple
Inheritance enables new objects to take on the properties of existing objects
Composition
Object doesn’t exist without the other one
Child object is created and continues to exist while the parent object exists
Information hiding
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