ICSE Class 10 Computer Applications
Question 18 of 30
Solved Sample Paper 3 — Question 18
Back to all questions 18
Question Question 1(xviii)
Read the following text and choose the correct answer:
Public access specifier allows a class to expose its member variables and member functions to other functions and objects. Any public member can be accessed from outside the class.
Which of these access specifier must be used for class so that it can be inherited by another subclass?
- public
- private
- protected
- none of the mentioned
public
Reason — According to the given context, public access specifier can be used for class so that it can be inherited by another subclass.