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() ;}
-An object of the class PartClerk is created for Lee (last name) .Given the information shown,the method GetSalary:
A) Is the one defined in Employee
B) Is the one defined in Clerk
C) Is the one defined in Salesperson
D) Cannot be determined
Correct Answer:
Verified
Q31: CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer
Q32: CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer
Q33: SQL-1999 supports multiple inheritance of subtypes by
Q34: Oracle 9i,differs from SQL:1999 in that if
Q35: Only methods that have been explicitly defined
Q37: In client-server processing:
A) A client may be
Q38: In SQL:1999,functions and procedures can overcome some
Q39: CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer
Q40: Which of the following requires object database
Q41: In the relational DBMS augmented with BLOBs:
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents