Which element of a class is optional?
Answers
Answered by
4
Answer:
OFFLINE CLASS IS BETTER FOR STUDENTS
Answered by
0
The element that is considered optional in a class is the construct
Detailed answer
A constructor allows us to initialize an object's properties upon its creation or start.
- It is a class that is used to represent cases where an object may or may not exist.
- Some of the other elements that are optional include Fields, Methods, Properties.
- Optional is a container object used to contain not-null objects it is used to represent null values
Similar questions