Computer Applications
Function is a set of objects that share the common state and behaviour.
OOP Intro Java
4 Likes
Answer
False
Reason — A function (also called a method) is a block of code that performs a specific task when called. Instead, a class serves as a blueprint that defines the common attributes (state) and methods (behaviour) shared by objects.
Answered By
3 Likes
Related Questions
C++ is also an object oriented programming language.
An object is identified by its characteristics.
Encapsulation keeps data safe from outside interference.
Assertion (A): BASIC, Java, Python, etc. are some popular high level languages.
Reason (R): The instructions written in high level languages need language translators to be understood by the system.
Based on the above discussion, choose an appropriate statement from the options given below:
- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.