Differentiate Various Programming Technique That Exist
Differentiate Various Programming Technique That Exist
UNSTRUCTURED PROGRAMMING
PROCEDURAL PROGRAMMING
During the program's execution, a procedure can be called at any point, either by other
procedures or by itself. The examples of procedural programming are ALGOL, COBOL,
BASIC, PASCAL, FORTRAN, and C
Suppose the user has no idea where the bug lies if there is an error within the code. Also, the user
has no idea where to look into the code to fix the error. This is quite difficult for standard
programming languages. However, when Object-Oriented Programming is applied, the user
knows exactly where to look into the code whenever there is an error. There is no need to check
other code sections as the error will show where the trouble lies.
It is mainly through encapsulation that makes the objects self-contained. This further helps in
troubleshooting and easier collaborative development.
Code Reusability
One of two important concepts that are provided by Object-Oriented Programming is the concept
of inheritance. Through inheritance, the same attributes of a class are not required to be written
repeatedly. This avoids the issues where the same code has still to be written multiple times in a
code. With the introduction of the concept of classes, the code section can be used as many times
as required in the program. Through the inheritance approach, a child class is created that
inherits the fields and methods of the parent class. The methods and values that are present in the
parent class can be easily overridden. Through inheritance, the features of one class can be
inherited by another class by extending the class. Therefore, inheritance is vital for providing
code reusability and also multilevel inheritance.
Productivity
The productivity of two codes increases through the use of Object-Oriented Programming. This
is because the OOP has provided so many libraries that new programs have become more
accessible. Also, as it provides the facility of code reusability, the length of a code is decreased,
further enhancing the faster development of newer codes and programs.
Data Redundancy
By the term data redundancy, it means that the data is repeated twice. This
means that the same data is present more than one time. In Object-Oriented
Deprogramming the data redundancy is considered to be an advantage. For
example, the user wants to have a functionality that is similar to almost all the
classes. In such cases, the user can create classes with similar functionaries
and inherit them wherever required.
1.1.4 DESCRIBE THE TERMS USED IN OBJECT ORIENTED ANALYSIS AND DESIGN ( OOAD )
Object-oriented analysis ( OOA )
Object-oriented analysis is a method for viewing the interaction of data and
manipulations of data that is based on the object-oriented programming paradigm.
Lisp
C++
Java
Python
An object can be defined as a data field that has unique attributes and behavior.
OOP focuses on the objects that developers want to manipulate rather than the
logic required to manipulate them.
Attributes are the characteristics of the class that help to distinguish it from other
classes.
Behaviors are the tasks that an object performs.