Answer:
The answer is "Option b".
Step-by-step explanation:
In the choice b, a public class "Employee" is declared, in which two private variables "name and salary" is declared whose data type is a string and double. At this, the class is accessible outside the scope but it variable accessible in the class only and the wrong choice can be defined as follows:
- In choice a, datatypes access modifiers were different that's why it is wrong.
- In choice c and d both classes use a priavte access modifier, which means it can't accessible outside that's why it is wrong.