Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 20th, 2005, 06:47 PM
chrisjacko chrisjacko is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 1 chrisjacko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 45 sec
Reputation Power: 0
Electronic telephone book task!

I have a task to do which invovles creating an electronic telephone book, ive jus started using java and havnt got a clue how to code each class, so if any1 could post the coding needed to make each class work i would be most grateful! cheers people!

Below is the task i was set -

Develop a Java application to create and manage an electronic telephone book. The book will contain information about home and overseas friends.

The abstract class Friend will have the following attributes:

name;
email;
tel;

And the following methods:
Friend(); //a constructor that will set up all values to “Unknown”
public void getData(String newName, String newEmail, String newTel)where data is saved in three parallel arrays names[], emails[], telNums[];
public string search(); (10)
public void displayAll();//before sorting
public void displaySorted();

A derived class HomeFriend will extend the base class by adding an attribute:

int areaCode;
and 3 methods:
HomeFriend(); //constructor that sets the area code to 0 as default
public void getAreaCode(int newAreaCode); //get value from user
public String displayAll(); (5)
public void displaySorted();//after sorting (5)

OverseasFriend class will extend the base class by adding an attribute:

int countryCode;
and 3 methods:
OverseasFriend();//constructor that will set default country code to 0
public void getCountryCode(int newCountryCode);
public String displayAll(); (5)
public void displaySorted();//after sorting (5)

The application will also include a datastore to save data.


Discuss any inheritance or use associations as part of your design using UML notations.

Reply With Quote
  #2  
Old June 21st, 2005, 09:45 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Perhaps if you post some of your code, we could help you learn off of that.
We're not going to do your projects for you.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Electronic telephone book task!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT