Join 150,131 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,119 people online right now. Registration is fast and FREE... Join Now!
We have a site policy that states a person must show their "best effort" attempt at solving the problem themselves. We can then jump in where you are stuck and help pull you through. And please, don't just paste your skeleton code there, actually try to code up the cat or dog class and we can then help you out from there.
This assignment is pretty straight forward if you know about inheritance. Thanks for helping us help you!
Attaching files are ok as long as they are relevant to your question (and try to make them something like PDF in the future). Just be sure to actually post some code you are using to accomplish the goals set out on your attachment.
Attaching files are ok as long as they are relevant to your question (and try to make them something like PDF in the future). Just be sure to actually post some code you are using to accomplish the goals set out on your attachment.
ya, but it just extra work for no need to download the file then open and wasting some time waiting reader to open
Attaching files are ok as long as they are relevant to your question (and try to make them something like PDF in the future). Just be sure to actually post some code you are using to accomplish the goals set out on your attachment.
ya, but it just extra work for no need to download the file then open and wasting some time waiting reader to open
relax man...if u don't want so don't open it...actually i'm still working with the assignment...as soon i finish it i will post it....duuhh~...i just only show the question..is there a problem man?...
QUOTE(vik09 @ 3 Aug, 2008 - 08:16 AM)
@redzuan Just out of curiosity, how old are you and what class are you in?
haha find ur self
QUOTE(pbl @ 3 Aug, 2008 - 01:28 PM)
QUOTE(redzuan @ 2 Aug, 2008 - 10:36 AM)
Hye again this my new assignment for data struc. Lets have fun with it.Lab_4.doc ( 60k )
Number of downloads: 11
Attaching files are ok as long as they are relevant to your question (and try to make them something like PDF in the future). Just be sure to actually post some code you are using to accomplish the goals set out on your attachment.
ya, but it just extra work for no need to download the file then open and wasting some time waiting reader to open
relax man...if u don't want so don't open it...actually i'm still working with the assignment...as soon i finish it i will post it....duuhh~...i just only show the question..is there a problem man?...
No Comment!!!
This post has been edited by lordms12: 5 Aug, 2008 - 05:31 AM
import java.util.*; /** * * @author Mohd Redzuan Omar */ public class Main { //outputs a description of the animal followed by //"Speak!" and the sound the animal makes
public static void announce(Animal a) { System.out.println(a.toString() + a.sound()); }
//change the name of animal public static void changeName(Animal a, String name) {