The operator function will be implemented as __, if obj1 drive the – operator whereas obj2 is passed as arguments to – operator in the statement given below. obj3 = obj1 – obj2;?

(A) Member function
(B) Non-member function
(C) Friend function
(D) None of the given options

Which of the following statement is best regarding declaration of friend function?

(A) Friend function must be declared after public keyword.
(B) Friend function must be declared after private keyword.
(C) Friend function must be declared at the top within class definition.
(D) It can be declared anywhere in class as these are not affected by the public and private keywords.

Which of the following option is true about new operator to dynamically allocate memory to an object?

(A) The new operator determines the size of an object
(B) Allocates memory to object and returns pointer of valid type
(C) Creates an object and calls the constructor to initialize the object
(D) All of the given options

error: Content is protected !!