OOPS
August 29, 2024Database-Management-System
August 29, 2024OOPS
Question 208 |
Member of a class specified as _______ are accessible only to method of the class.
private | |
public | |
protected | |
derive |
Question 208 Explanation:
→ Member of a class specified as private are accessible only to method of the class.
→ Private is default for a member of a class if no access specifier is used for it.
→ When we pass an argument by call by value a copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have no effect on original argument, they remain the same.
→ Private is default for a member of a class if no access specifier is used for it.
→ When we pass an argument by call by value a copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have no effect on original argument, they remain the same.
Correct Answer: A
Question 208 Explanation:
→ Member of a class specified as private are accessible only to method of the class.
→ Private is default for a member of a class if no access specifier is used for it.
→ When we pass an argument by call by value a copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have no effect on original argument, they remain the same.
→ Private is default for a member of a class if no access specifier is used for it.
→ When we pass an argument by call by value a copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have no effect on original argument, they remain the same.
Subscribe
Login
0 Comments