WD interview question

Difference between public and private variable