If the data attribute of the class and the
method attribute are in same scope, then
the data attribute will be given
(A) higher priority
fB) lower priority
(C) equal priority
(D) no priority
Answers
Answered by
54
the answer is (c) equal priority
Answered by
4
Answer:
If data attribute of class and method attribute are in same scope, then data attribute will be given equal priority.
Option C
Explanation:
A class is one of well known concepts in OOP Programming language. It holds the definition and declarations of variables and methods. This class is one of the well known examples of encapsulation method.
The term encapsulation can be defined as data binding and methods together. However, the statement is asked which of the attributes are given priority, when they are in same scope. Since, both are encapsulated under class, both are given equal priority
Similar questions