Multiple Choice
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
Correct Answer:
Verified
Q2: In object-oriented computing,the object DBMS is responsible
Q3: In the object-oriented DBMS (as distinguished from
Q4: Only methods that have been explicitly defined
Q5: Currently,there is no unified standard that allows
Q6: In SQL:1999,the keywords _ are used to
Q7: Which of the following is not true
Q8: Which of the following is an object-oriented
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