1
Reply

What are different types that a variable can be defined and their scopes ?

Prabhu Raja

Prabhu Raja

12y
6.7k
0
Reply

    Public- Can be accessed anywhere
    Private- anywhere in the same class
    Protected -winthin the class and the class that inherites this class
    Friend- Members of the class within the assembely
    Protected friend- member of assembely or inheriting class