Please solve follwong 3 questions (using java) (every question is different) 1.Create a class called Employee whose objects are records for an employee. This class will be a derived class of the class Person. An employee record has an employee's name (which is a private property and inherited from the class Person), an annual salary represented as a single value of type double & private property, a year the employee started work as a single value of type int and a national insurance number, which is a value of type String & private property of the Employee class. Write another class containing a main method to fully test your class definition.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please solve follwong 3 questions (using java)

(every question is different)

1.Create a class called Employee whose objects are records for an employee. This class will be a derived class of the class Person. An employee record has an employee's name (which is a private property and inherited from the class Person), an annual salary represented as a single value of type double & private property, a year the employee started work as a single value of type int and a national insurance number, which is a value of type String & private property of the Employee class. Write another class containing a main method to fully test your class definition.

2.Create a class called Bank which contains bank’s name, address, number of branch of that bank. Usually a bank has different scheme like savings account, fixed deposit, DPS. All scheme has different interest rate like 4%, 6%, and 4.5%. Write class for each scheme which inherit bank class & must implement a method which calculate amount including interest rate based on any amount. 

3.Create an class named Pet which contains 3 method named getName(), setName() & play(). Create a class named Cat that inherit Pet class & contains a method named eat(). Create another class named Fish that also inherit Pet class & override play() ethod. Write a test application that demonstrates each class’s capabilities.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education