English, asked by apatal877013163, 1 month ago

Which element of a class is optional?​

Answers

Answered by Anonymous
4

Answer:

OFFLINE CLASS IS BETTER FOR STUDENTS

Answered by DeenaMathew
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