Examlex

Solved

CLASS Employee { //Variables

question 1

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:


Definitions:

Irrigation Systems

Networks of tubes, pumps, and canals used to transport water to agricultural crops to enhance growth when rainfall is not sufficient.

Power Generators

Machines or devices that transform various forms of energy into electrical power.

Capital Formation

The process of building up the physical and financial assets of a country or region for the purpose of increasing its capacity for production.

Economic Growth

An increase in the amount of goods and services produced per head of the population over a period of time.

Related Questions