how i want to create a coding by this question?

Ads
 

how i want to create a coding by this question?

Design and write a class named Person and its two subclasses named Student and Employee. Make Lecturer and Admin subclasses of Employee.

A person has a name, address, phone number and email address. A student has a matric number and status (year 1, year 2 or year 3). An employee has a department, salary and date hired.

Define a class named MyDate that contains the fields year, month and day. A lecturer has a rank (Lecturer, Senior Lecturer, Associate Professor or Professor).

An admin staff has a title (Assistant Registrar, Head Registrar or Registrar). Override the toString() method in each class (except MyDate) to display the class name and the personā??s name. Also define a suitable constructor for each class.

Draw the UML diagram for the classes. Write a test program named Asg1_3 that creates an object from each of these classes and invokes their toString() method.

View Answers

Ads









Related Tutorials/Questions & Answers:
how i want to create a coding by this question?
I want to know how can I create sessionfactory in hibernate 4 (latest version)
Advertisements
plsz i want the coding details of line
plsz i want the coding details of line
i want to create dynamic calendar in java
i want to create dynamic calendar in java
How should I learn coding?
i want to create an icon on my desktop... with this i want to open my web application
How do i do the coding for 'leaving a comment' in java
i want to know how a slide will hide
i want to know how a slide will hide
how to create modules i structs applications?
how can i create a discussion forum?
May I know how to create a web page?
i want to type the intput in the output console box how?
I want to change my user name on your website ,how can i do this
How can I create sessionfactory in Hibernate?
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
Want to learn java - How i can learn Java from scratch?
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
i want to create an application with only a button which on click displays table from database using struts2 and hibernate on eclipse
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
hi its the coding of create layout of chess in applet i hope u like it
i want to create website,with manu with three level submenu on top side of page please send me code java
how to create directed line between two buttons when i clicked there
I would like an example about how to create a sessionfactory in Hibernate 4?
problem i coding
Hi, I'm new to JSP I want to create 3 dropdown list each depend on the other and get the options from the database using JSP

Ads