OOPs Concepts
Programming and Technical
HR Interview
Interview
Class members are by default
-Public
-Private
-Protected
-Inherited
Read Solution (Total 8)
-
- public in java and private in c++
- 7 years agoHelpfull: Yes(1) No(0)
- private ... in c++
- 11 years agoHelpfull: Yes(0) No(0)
- private for c++
- 11 years agoHelpfull: Yes(0) No(0)
- Private Because it's better to be properly encapsulated and only open up the things that are needed, as opposed to having everything open by default and having to close it.
- 11 years agoHelpfull: Yes(0) No(0)
- by default class member of any class is private.it is rule of encapsulation .
- 10 years agoHelpfull: Yes(0) No(0)
- by default class members are always private.
- 10 years agoHelpfull: Yes(0) No(0)
- private(its by default)
- 7 years agoHelpfull: Yes(0) No(0)
- -public is the correct
- 7 years agoHelpfull: Yes(0) No(1)
OOPs Concepts Other Question