TORONTO KIDS COMPUTER CLUB | PMCA Sunday 12:00 Java Homework 20.08.30.
18257
post-template-default,single,single-post,postid-18257,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Sunday 12:00 Java Homework 20.08.30.

04 Sep PMCA Sunday 12:00 Java Homework 20.08.30.

Question:
Imagine you are making a java project to store information for a small organization. You need to store the information about 3 kinds of the employees in the company namely HR, Software Engineers, Managers. You need to write classes to store information about the previously mentioned employee types.

Here is one way to do that

    1. Create a new project
    2. create a class by the name of Person. Add whatever general properties and methods the person can have
    3. Create classes from HR, Software Developers and Managers separately and make sure you use inheritance so that the three classes can inherit all the properties and methods of the person
    4. After that test your approach by creating a driver class with the main method and create the object from each class.
No Comments

Sorry, the comment form is closed at this time.