Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
help plz
Reply
Posted 2004-05-19, 06:14 AM
plz help i have to design a java interface called priority that has two methods setPriority and getPriority. so i have to design and implement a class called task that implements they Priority interface. and create a driver class to use some task objects.
this what i have so far

this my priority

public interface priority
{
public void setPriority (int priority)
public int getPriorty ();
}

this my task

public class task implements priority{
private string description;
private in importance;
task (string Name, int p) {
description = name;
imprtance = p;
public void setPriority (int priority){
importance = priority;
}
public int getPriority ();
return importance
}

this my task driver

public static void main (string [] args){
task, t1,t2,t3;
int priority1, priority2, priority3;
string description1, description2, description3;
system.out.println ("enter a description");
description= keyboard.readstring();
t1= new task priority1;
t2= new task priority2;
t3= new task priority3;

i got stuck in they task driver can someone tell me what do i add to make it work or tell me if i made any mistake plz help me
Old
Profile PM WWW Search
osmoses-jones is neither ape nor machine; has so far settled for the in-betweenosmoses-jones is neither ape nor machine; has so far settled for the in-between
 
osmoses-jones
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:17 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.