Computer Applications
By default, a class is declared using the access specifier …………… .
- private
- public
- protected
- secured
Objects & Classes
10 Likes
Answer
public
Reason — By default, if no access specifier is provided, a class is considered to have the public access level.
Answered By
3 Likes
Related Questions
Which is a valid display() method declaration of a class Sample?
- Void Sample{int x}
- public void display()
- public void Show()
- Display{}
Creating an object of a class is also referred to as:
- Initialisation
- Creation
- Formation
- Instantiation
Which keyword allocates objects in dynamic memory?
- this
- private
- new
- int
Read the following text, and choose the correct answer:
They are the real world or software world entities which possess different characteristics and common behaviour described within the class.
Which of the following concept of Object Oriented Programming describe?
- Class
- Object
- Quality
- Category