Question
a.
Define a public function which multiplies two numbers
b.
Define a public function that returns values of two data members
c.
Define a private function which multiplies two numbers
d.
Define a private function that returns values of two data members
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
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...
Similar Questions
Discover Related MCQs
Q. If a database have to be maintained using OOP, to store the details of each employee in a company, which would be the best choice among the following?
View solution
Q. Which class represents the most abstracted information?
View solution
Q. Which among the following is an advantage of using classes over structures of C?
View solution
Q. Which among the follow is a feature of class?
View solution
Q. Class is _____________ of an object.
View solution
Q. In which case the classes can be used to make more efficient program?
View solution
Q. What is the use of inbuilt classes?
View solution
Q. Which feature is exhibited by the inbuilt classes?
View solution
Q. Why do we use user defined classes?
View solution
Q. Why do classes use accessor methods?
View solution
Q. Why do classes use mutator methods?
View solution
Q. Which among the following is the most abstract form of class?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!