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?
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?
Define a public function which multiplies two numbers
Define a public function that returns values of two data members
Define a private function which multiplies two numbers
Define a private function that returns values of two data members
(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