ruchita mahajan wrote:hi,
can anyone please explain me the access modifiers with simple examples.
i am very much confused in particular when using the protected and default ..............when to use the dot operator and when to access directly.
please help me clear my doubts.
Please specify clearly your problem...........
You can acess only class non-static member methods and member variables directly.
Protected members can be accessed by class members as well as derieved class members.