Computer Applications
Which of the members can be accessed globally?
- Private
- Public
- Protected
- All of the above
Related Questions
Which of the following statements is the most appropriate for the private members?
- They are visible out of the class in which they are defined.
- They can be used in the sub-classes.
- They are only visible in the class in which they are declared.
- None of the above.
Which of the following keywords are used to control access to a class member?
- Default
- Abstraction
- Protected
- Interface
The maximum number of objects of a class can be created as:
- 1
- 2
- On the user's choice
- Number of variables
A class contains:
- Attributes and methods
- A number of object of same types
- Data and member function
- All of the above