4. If the data attribute of the class and themethod attribute are in same scope, thenthe data attribute will be given(A) higher priorityfB) lower priority(C) equal priority(D) no priority
Answers
Answered by
0
Answer:
okk okk I am lavanya Bodkhe. ..nice to see you friend
Answered by
0
Answer:
Equal priority.
Explanation:
The class is the object oriented concept in programming. The class contains the data and methods in its definition. The oops concept also follows the encapsulation method. The encapsulation means the binding of data and methods together.
The question says that the data attribute and method attribute, both of them have the same scope . The priority here can mean that which of these two object can access easily. Since both of them are bound together there in no question of high priority or low priority. The object of the class can access them simply with no priority or equal priority.
Similar questions
Science,
6 months ago
Math,
6 months ago
Biology,
1 year ago
Business Studies,
1 year ago
Biology,
1 year ago
Computer Science,
1 year ago