The Artima Developer Community
Sponsored Link

Java Answers Forum
problem by using vendor

1 reply on 1 page. Most recent reply: Nov 2, 2003 9:54 PM by Senthoorkumaran Punniamoorthy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Lai Soo Xi

Posts: 1
Nickname: johnjohn
Registered: Nov, 2003

problem by using vendor Posted: Nov 2, 2003 9:09 PM
Reply to this message Reply
Advertisement
Hi guys!!I have problem with my projects by using vendor!
Quesion:

Create a class hierarchy that has 1 base(super)class called Empalyee and 2 subclasses called Full Time and Part Time.The Employee class should contain all the attribute that the two classes have in common,whereas the two other classes model individual properties of a particular Employee.

Super class:-
class name:Employee

attribute:name-String
gender-char

method:getName()-String
getPay()-double{abstract}

subclass(1):-

class name:Full Time
attribute:salary-double
ot-double

method:getPay()-double

subclass(2):-

class name:Part Time
attribute:hoursWorked-double
rate-double

method:getPay()-double


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: problem by using vendor Posted: Nov 2, 2003 9:54 PM
Reply to this message Reply
SO whats the problem now?

Flat View: This topic has 1 reply on 1 page
Topic: Problem with Jar Previous Topic   Next Topic Topic: java pipes

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use