How to access data members of a class?
(a) Dot operator
(b) Arrow operator
(c) Dot or arrow as required
(d) Dot, arrow or direct call
I had been asked this question during an interview.
My question is from Data Members topic in chapter Class Members & Types of Object Oriented Programming