CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer HoursWorked;
Date HireDate;
String Job;
//Methods
Real Salary() ;
String GetLastName() ;
String GetFirstName() ;
String GetJob() ;}
-The ability by a program do to the following violates encapsulation principles:
A) Directly Access LastName
B) Retrieve LastName with method GetLastName() ;
C) Retrieve Job with the method GetJob() ;
D) Compute salary with method Salary()
Correct Answer:
Verified
Q27: CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer
Q28: CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer
Q29: Which of the following applications is supported
Q30: Oracle 9i follows the SQL:1999 standard in
Q31: 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
Q36: CLASS Employee {
//Variables
String LastName;
String FirstName;
Real HourlyRate;
Integer
Q37: In client-server processing:
A) A client may be
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