Question: Hi Solve the quastions plz 18. Using inheritance allows us to * eliminate duplicate code make our classes more modular use polymorphism all of the
Hi
Solve the quastions plz


18. Using inheritance allows us to * eliminate duplicate code make our classes more modular use polymorphism all of the above 19. If the member variables in a base class are private, then * they can be directly accessed or changed in the derived class the derived class must use any queries or update functions from the base class making them private causes a syntax error. O you must declare them in the derived class also. 20. When a throw statement is executed, * execution of the try block stops execution of the throw block stops the program always exits O execution of the catch block stops 1. Which of the expression below can be used to calculate whether it is even or odd? if (num % 2 = 0) if (num/2) if (num % 2 == 0) if (num / 2 = 1) 2. Which operator has highest precedence among the choice below?* Multiplication (*) Increment (--) Unary (+) AND operator (&&) 3. Function declaration must appear in the code before the function can be called. * TRUE FALSE 4. The return value of the following functions is of type double EXCEPT:* ceil abs sart pow
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
