Computer Science, asked by nitish19, 1 year ago

Q.no.1. In what ways is Object Oriented Programming different from Procedure Oriented Programming Language ?

Q.no.2. Why is a class known as compositive data type ?

Answers fast... it's urgent...

Answers

Answered by kshrabani
1
In POP,program is divided into small parts called functions. In OOP, program is divided into parts called objects. In POP,Importance is not given to data but to functions as well as sequence of actions to be done.

nitish19: you didn't give me the 2question's answer
kshrabani: A composite data type is one which is composed with various primitive data type. A class defined with various primitive data types such as int, double etc; so it is knownas a composite data type; and it is used to create objects which hold similar types of values and behaviours (functions).
nitish19: thank you so much
Answered by cyrusbishop
0

Answer:

1) The major differences are that  Object Oriented Programming gives stress on the data items rather than functions and  Procedure Oriented Programming Language gives emphasis on the functions.

Object Oriented Programming uses objects as a bridge to have data flow from one function to another, but  Procedure Oriented Programming Language uses data values which keep floating from one function to another.

2) Class is a prototype of an object which contains all fundamental data types like byte, short, int, long, float, double, char and boolean.Any data type that is based on primitive data types are known as composite data type. Since class uses these data types to perform various tasks.

Therefore, class is also known as composite data type.

Similar questions