Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is the difference(s) between a public and private instance variable? Privat

ID: 3799209 • Letter: W

Question

What is the difference(s) between a public and private instance variable? Private instance variables cannot be directly read while public instances variables can be directly read and set. Private instance variables cannot be directly read or set while public instances variables can be directly read and set. Private instance variables cannot be directly set while public instances variables can be directly read and set. Private instance variables cannot be directly set while public instances variables can be directly set. Private instance variables cannot be directly read or set while public instances variables can be directly set but not directly read.

Explanation / Answer

35.

Ans : Second one.

Private instance variable can not be directly read ot set while public instance variable can be directly read and set.

Explanation :

Because

That is why.