Question OOP-CLS-0006
EasyHow many objects can be created from one class?
- A.
Exactly one
- B.
None
- C.
Show answer and explanation
Answer: C
A class is a template; you can create as many instances as you need (unless it is designed as a singleton).
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Classes and Objects question
How many objects can be created from one class?
Exactly one
None
Answer: C
A class is a template; you can create as many instances as you need (unless it is designed as a singleton).
Any number
At most two