Which of the following statements about access modifiers is true:
Max. scrie 2009
1. Access specifiers are keywords in object-oriented languages that set the accessibility of classes, methods, and other members.
2. Access modifiers are a specific part of a programming language syntax that is used to facilitate the encapsulation of components.
3. The public access specifier gives access to the member function from outside the class.
a Only 2 is true
b Both 2 and 3 are true
c Both 1 and 3 are true
d All of these
Answers
Answered by
0
Answer:
c
Explanation:
Answered by
0
Answer:
Concept:
Object-oriented programming language and true or false.
Explanation:
1. Access specifiers are keywords in object-oriented languages that set the accessibility of classes, methods, and other members. True
2. Access modifiers are a specific part of a programming language syntax that is used to facilitate the encapsulation of components. True
3. The public access specifier gives access to the member function from outside the class. True
All are true..so the correction option is (d)
#SPJ3
Similar questions
Physics,
3 months ago
Science,
3 months ago
Math,
8 months ago
English,
8 months ago
Social Sciences,
1 year ago