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
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.