Object Oriented Programming Flashcards
Object-oriented analysis (OOA) i
Object-oriented analysis (OOA) is the process of looking at a problem, system, or
task (that somebody wants to turn into an application) and identifying the objects
and interactions between those objects. The analysis stage is all about what needs
to be done.
Object-oriented design (OOD)
Object-oriented design (OOD) is the process of converting such requirements into
an implementation specification. The designer must name the objects, define the
behaviors, and formally specify which objects can activate specific behaviors on
other objects. The design stage is all about how things should be done.
Object-oriented programming (OOP)
Object-oriented programming (OOP) is the process of converting this perfectly
defined design into a working program that does exactly what the CEO
originally requested.
Object
Objects are instances of classes that can be associated with each other. An object instance is a
specific object with its own set of data and behaviors
Data
Data typically represents the individual characteristics of a
certain object.
Attributes
Attributes are frequently referred to as members or properties
Behaviors
Behaviors are actions that can occur on an object.
Interface
The interface is the collection of attributes and methods that other objects can use to interact with that object.
Encapsulation,
This process of hiding the implementation, or functional details, of an object is
suitably called information hiding. It is also sometimes referred to as encapsulation,
but encapsulation is actually a more all-encompassing term.
Abstraction
Abstraction is another object-oriented concept related to encapsulation and
information hiding. Simply put, abstraction means dealing with the level of detail
that is most appropriate to a given task.
Objects and Attributes
objects typically represent nouns in the original problem, while methods are normally verbs. Attributes can often be picked up as adjectives,
Composition
Composition is the act of collecting several objects together to create a new one.
Aggregation
Aggregation is almost exactly like composition. The difference is that aggregate objects can exist independently.
Inheritance
In object-oriented programming, instead of inheriting features and behaviors from a person, one class can inherit attributes and methods from another class.
Polymorphism
Polymorphism is the ability to treat a class differently depending on which subclass is implemented.