Q:

If a class have two data members and two functions to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?

0

If a class have two data members and two functions to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?


  1. Define a public function which multiplies two numbers
  2. Define a public function that returns values of two data members
  3. Define a private function which multiplies two numbers
  4. Define a private function that returns values of two data members

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (b).Define a public function that returns values of two data members

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
If a database have to be maintained using OOP, to ... >>
<< To group all the brands of cars, what should be us...