168k views
4 votes
In a class definition, if the word Private appears before a field declaration, Private is known as a(n) ________.

1 Answer

5 votes

Answer: Access specifier

Step-by-step explanation:

An access specifier is one of the type of coding element in the given program that can be determined by the different types of protocols in the programming language.

  • It is also variable in the form of default including the class or any type of variable.
  • The access specifier is basically divided into the three categories that are:
  1. Private
  2. Public
  3. Protected

According to the given question, in the class definition, the private is basically known as the access specifier if private appear before the given field declaration. In the class, the private members are cannot be easily access.

Therefore, Access specifier is the correct answer.

User Travis Bradshaw
by
5.3k points