Vidyalelo
Java Programming · Q84

Inheritence

Programming · Java Programming · question 84

Q84

In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?

A.
Protected
B.
Private
Answer
C.
Public
D.
Static

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board