Multiple choice java

Which of the following statements are true?a. By default,all members of structure are private.b.new and delete operator can be overlaodedc.friend fucntion can overload [],(),= operators.

  1. a only

  2. a and b

  3. b only

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In C++, the 'new' and 'delete' operators can be overloaded. Statement 'a' is false because members of a 'struct' are public by default (unlike 'class'). Statement 'c' is false because the assignment operator (=), subscript operator ([]), and function call operator (()) must be overloaded as non-static member functions.