In: Computer Science
What is different between procedural and object-oriented programming?
Match each of the following OOP concepts with its example/description.
Question 2 options:
|
|
Match each step/characteristic of OOA/OOD/OOP with its description.
Question 3 options:
|
|
1)
procedural programming is Structure oriented
object-oriented programming is Object oriented
2)
In procedural programming ,entire program is divided into small parts which is based on the functions.
In object-oriented programming the entire program is divided into small parts called objects
3)
In procedural programming no access specifier is observed
In object-oriented programming there are three access specifiers which are called
i) Public,
ii) Private and
iii) Protected
4)
In procedural programming there is no data hiding hence it is less secure
In object-oriented programming there is data hiding hence it is more secure
5)
In procedural programming the approach is top down approach
In object-oriented programming the approach is Bottom-up approach
--------------------------------------------------------------------------------------------------
Providing a way for an entity to behave in several ways OR providing multiple entities to be treated in a similar way
-- Polymorphism
A key way of saving having to retype a lot of code for similar but different objects -- Inheritance
The removal of non-essential information -- abstraction
Allowing which function to be called by an object to be set at runtime instead of when the program is compiled -- Dynamic Binding
Data and functions together as defined by a blueprint and then instantiated with particular values -- Class and Object
When objects communicate with each other they are doing this -- Message Passing
The concept of putting data and functions together in a single form -- Encapsulation
Preventing outside code from accessing data that it shouldn't -- Data Hiding
------------------------------------------------------------------------------------------------------------------------
During this step in the process, objects are identified and organized -- Object Oriented Analysis
In this step, the program is implemented -- Object Oriented Programming
During this step in the process a plan is devised in how an application's purpose will be met by laying out some of the implementation details -- Object Oriented Design