Object Oriented Paradigm Flashcards
A class defines the set of shared _________ and _________ found in each object within that class.
Attributes, behaviors.
In a single unit called an object, what two things are combined?
Data, and the functions that operate on that data.
Classes, like humans, can have characteristics and __________?
Behaviors
This is more detailed instance of a class…
Object. ex. Class = Student; Object = David.
What term is used when an object is created from a class?
Instantiation.
APIE stands for what?
Abstraction, Encapsulation, Inheritance, Polymorphism.
Abstraction means what?
Abstract up to only the features, properties or functions that are relevant.
_________ dictates what should and should not be abstracted.
Context.
What is encapsulation?
The act of grouping into a single object both data and the operations that affect that data.
What is required to be for a method that wants to access data stored within an object?
That method needs to be defined by that object’s class.
What are two reasons as to why encap is significant?
Reliable objects that have total control over their attributes.
Only the objects change attribute values, so a potential issue is contained.
Inheritance is what?
The process of creating new classes from base classes.
What is a derived class and a base class
Derived = Used a previous (Base Class) as a template.
True or False. The derived class is limited to the attributes and behaviors of the parent/base class.
False, the derived class can ADD attributes and behaviors.
What is polymorphism?
Being able to perform the same operation on different objects. EX. telling a bird to move. Some fly, some run, some swim.