how i want to create a coding by this question?

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









Related Tutorials/Questions & Answers:
how i want to create a coding by this question?
plsz i want the coding details of line
Advertisements
plsz i want the coding details of line
I want to know how can I create sessionfactory in hibernate 4 (latest version)
i want to create dynamic calendar in java
i want to create dynamic calendar in java
i want to create an icon on my desktop... with this i want to open my web application
How should I learn coding?
How do i do the coding for 'leaving a comment' in java
i want to find the byte code of a image file ... for my project..plz if anybody help me for java coding i will grateful..
i want to know how a slide will hide
i want to know how a slide will hide
How can i write a datagrid coding - Java Beginners
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
i want to type the intput in the output console box how?
hi its the coding of create layout of chess in applet i hope u like it
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 do I become a data scientist without coding experience in India?
I want to change my user name on your website ,how can i do this
i want to create website,with manu with three level submenu on top side of page please send me code java
I want simple steps to create Jar File of Java Project - Java Beginners
I want to learn maven
how to create modules i structs applications?
how can i create a discussion forum?
netbeans coding prob - IDE Questions
May I know how to create a web page?
problem i coding
Want to learn java - How i can learn Java from scratch?
I want to learn maven
How can I create sessionfactory in Hibernate?
i want to learn Jquery
How I Choose a folder - Java Interview Questions
i want for statement codding
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
i want to update values
i want code for these programs
I want this jsp answers
I want this jsp answers
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
how to create a dynamic website - Servlet Interview Questions
how can i create a data grid - Java Beginners
I want Mini Java Project for Student Admission System. actually i want 2 know how 2 start this...please show me my way.....
I have a tex box. in that i want user should enter data in the format specified(for eg--a_b_c_d_e_)how to write code for it.
can i restrict a class that it will not allows create more than two objects - Java Interview Questions
i want code of signing off from a account how its done in jsp and servlet by using either cookies or session
How do i create the node for target SMO in java..???

Ads