Post a New Question

computer science

posted by .

Write a method main that demonstrates class Employee's capabilities by
creating two Employee objects. Initialize one of the objects (give values to
the instance variables) using the constructor and display its instance
variable values through the display method. Using the set methods initialize
the other object with instance variable values input from the keyboard, and
then display them using the get methods.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. computer science

    I need to see if someone can help me with a c# programming problem Create a class called employees that includes three pieces of information as either instance variables or automatic properties - a first name(type string), a last name …
  2. programming

    There are several types of room in a hotel. The HotelRoom Class of Previous Programming Problem was not specific regarding the type of room. Assume that a hotel has guest rooms and meeting rooms. Modify the HotelRoom class as follows: …
  3. programming

    a) Define a Cat class. A Cat has name. Define two constructors, one with no argument and another with the name as its argument. Initialize the name to a default value Unknown for the zero-argument constructor. b) Create a main class. …
  4. programming

    write a program that creates a list of employees objects of size n entered from user using list interface and a list class implementation and display all employees in list and print employee name with minimum salary and remove employee …
  5. psudoecode

    Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods accepts two numeric arguments …
  6. psudoecode

    Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods accepts two numeric arguments …
  7. Program Design and Development

    Design a class called SimpleCalculator using psudoecode that contains public methods named add(), subtract(). Each of the methods accepts two numeric arguments and returns a number that represents the result of the appropriate arithmetic …
  8. programming

    Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods accepts two numeric arguments …
  9. programming

    Design a sub-class of SimpleCalculator called Calculator using psudoecode that contains public methods named multiply(), and divide() and that defines private fields called num1 and num2. Each of the methods accepts two numeric arguments …
  10. Computer program and design

    Design a class called SimpleCalculator using psudoecode that contains public methods named add(), subtract(). Each of the methods accepts two numeric arguments and returns a number that represents the result of the appropriate arithmetic …

More Similar Questions

Post a New Question