Skip to main content



      Home
Home » Newcomers » Newcomers » Object Oriented Programming with Eclipse(Creating classes and variables)
Object Oriented Programming with Eclipse [message #766994] Fri, 16 December 2011 15:08 Go to next message
Eclipse UserFriend
So I'm still very new to Java and using Eclipse. I need help with something and I'm hoping someone can be of assistance. Here is what I am making:

An Animal class with a member variable called animalType that stores what kind of animal it is. There will also be a method called MakeSound() that returns a string that represents the sound the animal makes. Also need 4 classes derived from the Animal class that can make sounds. With this I'll also need another class named CallAnimal() that calls the MakeSound() method for each animal class and print out the animal sounds to a text file named AnimalSounds.txt

I understand how to create the class, but creating variables & methods in it is like reading German. Any help is greatly appreciated!! Thank you!!
Re: Object Oriented Programming with Eclipse [message #767139 is a reply to message #766994] Sat, 17 December 2011 00:40 Go to previous message
Eclipse UserFriend
Hi Sarah,

It looks like you should learn Java from the beginning. You will learn how to write Java code with a simple text editor, then go advanced with Eclipse.
Things are pretty easy, as long as you really want to do some hand-ons, rather than asking questions over again and waiting for reply.

I hope you will try your best.
Previous Topic:Object Oriented Programming
Next Topic:Using eclipse for flex on java?
Goto Forum:
  


Current Time: Wed Jul 16 07:42:38 EDT 2025

Powered by FUDForum. Page generated in 0.09357 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top