Which, inserted at line 2, is valid and demonstrates encapsulation?
A. protected int gas;
B. private int gas;
C. public int gas;
D. struct int gas;
Answer:B
Which, inserted at line 2, is valid and demonstrates encapsulation?
A. protected int gas; B. private int gas; C. public int gas; D. struct int gas;