- A sets = sets.AbstractEnumerableSet.extend();
- B sets.SingletonSet = sets.AbstractEnumerableSet.extend(
- C sets.SingletonSet = sets.extend(
- D sets = sets.extend(
- Share this MCQ
Answer:
B
Share this MCQ
"A singleton is a type of object that can only be created once. The extend
keyword is used to create a child class from a parent class in class declarations or expressions.
In this case, the sets object serves as the namespace for the module, and the set
classes are defined as properties of this object
Share this MCQ