Multiple Choice
CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer HoursWorked;
String Job;
Date HireDate;
Real Monthly_Salary;
//Methods
String GetLastName() ;
String GetFirstName() ;
String GetJob() ;
Real GetSalary() ;}
The class Clerk is a subclass of the class Employee
CLASS Clerk: Employee {
//Variables
Real HourlyRate;
Integer HoursWorked;
//Methods
Real GetSalary() ;}
The class Salesperson is a subclass of the class Employee
CLASS Salesperson: Employee {
//Variables
Real Base_Salary;
Real Commission_rate
Real Sales;
//Methods
Real GetSalary() ;}
The class PartClerk is a subclass of the classes Clerk and Salesperson
CLASS PartClerk: Clerk, Salesperson {
//Variables
Real PercentClerk;
//Methods
Real GetPercentClerk() ;}
-If there is an object for a clerk with last name Lopez,the following method will be used to compute Lopez's salary:
A) The method GetSalary defined in the class Clerk
B) The method GetSalary defined in the class Employee
C) A new method GetSalary, which was created for that object, when the object for Lopez was created
D) There is ambiguity, and the program must tell the system which method to use
Correct Answer:

Verified
Correct Answer:
Verified
Q9: A(n)_ is a combination of data and
Q10: _ binding binds a method name with
Q11: The principle of encapsulation in object-oriented programming
Q12: Class reusability and improved organization of software
Q13: _ binding binds a method name with
Q15: Since Oracle 9i differs from SQL:1999 in
Q16: There is a request to delete the
Q17: CLASS Employee {<br>//Variables<br>String LastName;<br>String FirstName;<br>Real HourlyRate;<br>Integer
Q18: There is a request to insert a
Q19: In object-oriented computing,the programming language is responsible