M5 OOP ITO 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,
It uses a collection of objects interacting with each other.
object-oriented programming,
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 –
Resilience to change with the use of X
polymorphism.
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
A class
is a running instance of a class that consumes memory and has a finite lifespan
An object
exists when an object contains a reference to another object. Referred to as the
“has a” relationship
Association –
the parent class from which properties are inherited by another class
superclass (base class) –
a new class with properties taken from a parent clas
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. t 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 behaviours of objects in the
system.
A class diagram
are the data contained in a class
Attributes
are the actions performed on that data
Operations
declared either at the start or end of a class definition. These variables identify the data stored in the object.
Attributes –
a method that is automatically executed when an object is created. This
method is used to initialize the attributes.
Constructor –
used to change or access the private data in an object.
Standard Methods –