M5 SEE DISC STRUCT2 Flashcards
is a technique of solving a problem and
breaking it down into smaller parts and
solving each of the smaller problems.
Procedural Programming
This model of software development is
process-centric or procedural since it
concentrates on the procedures in a
system
Procedural Programming
It describes the task to be performed on objects. These objects that have to be created and stored in the computer memory, contain data and instructions to perform tasks specific to that object.
Object-Oriented Programming
The focus of X
is to break down a programming task
into a collection of variables, data
structures, and subroutines
procedural programming
The focus of X is to break down a programming task into objects that expose behavior (methods) and data (members or attributes) using interfaces.
object-oriented
programming
uses
procedures to operate on data
structures
procedural programming
bundles the procedures and data structures together
object-oriented
programming
an instance of a class that operates on its own data structrue
object
It uses a collection of objects interacting
with each other.
object-oriented
programming
enables
programmers to create modules that
need not be changed when a new type
of object is added.
object-oriented
programming
reduces softeare complexities and realistic
modelling through the use of various
techniques
OOP
the process of picking out
the common features of objects and procedures.
This process focuses on the essential
characteristics of an object.
Abstraction
the process of hiding the
implementation details of an object.
Encapsulation –
allows an object to extend its characteristics to another object.
Inheritance –
ability to process objects differently depending on their data type or class
Polymorphism –
is a template or blueprint that defines an object’s attributes and operations and that is created at design time
class
is a running instance of a class that consumes memory and has a finite lifespan
object
exists when an object contains a
reference to another object. Referred to as the
“has a” relationship
Association –
referred to as the “kind of” or “is
a” relationship
Inheritance –
the parent class from which properties are inherited by another class
superclass (base class) –
a new class with properties taken from a parent class
subclass (derived class) –
a well-encapsulated
conceptual class. The objects of this class do
not exist in real world
abstract class –
is a general-purpose notational
language used for specifying and visualizing
complex software, usually large object-oriented
project. It uses several types of diagrams such
as the case diagram, class diagram, and state
chart diagram.
Unified Modeling Language (UML)
is used to describe the
attributes and behaviors of objects in the
system.
class diagram
are the data contained in a class
Attributes
are the actions performed on that data
Operations
Public (+), Private (-), Protected (#)
Accessibility:
UML Access Modifier Symbols:
- public
- private
- protected
- package
- indicates default access
- represents abstract class method
- represents static method or attribute
- public: +
- private: -
- protected: #
- package: ~
- indicates default access: “ “
- represents abstract class method: italics
- represents static method or attribute: underline