Commit fba7b9f8 authored by sam.pople's avatar sam.pople

submission

parent 93b841ec
{
"java.project.sourcePaths": ["src"],
"java.project.outputPath": "bin",
"java.project.referencedLibraries": [
"lib/**/*.jar"
]
}
## Getting Started
Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.
## Folder Structure
The workspace contains two folders by default, where:
- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the `bin` folder by default.
> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.
## Dependency Management
The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).
public class Animals {
String AnimalsName, AnimalDescription, ViewingTime, FeedingTime;
Environment Environment;
FoodType foodType;
Animals(String AnimalsName, String AnimalDescription, String ViewingTime, String FeedingTime) {
this.AnimalsName = AnimalsName;
this.AnimalDescription = AnimalDescription;
this.ViewingTime = ViewingTime;
this.FeedingTime = FeedingTime;
}
}
public class Birds extends Animals{
String BirdActs;
Birds(String AnimalsName, String AnimalDescription, String BirdActs, String ViewingTime, String FeedingTime) {
super(AnimalsName, AnimalDescription, ViewingTime, FeedingTime);
this.BirdActs = BirdActs;
}
}
public class Carnivore extends FoodType{
Carnivore(String FoodTypeName) {
super(FoodTypeName);
}
}
public class Environment {
String EnvironmentName, EnvironmentDescription, EnvironmentLocation;
int EnvironmentTemperature, EnvironmentArea; //The area is described in square meters
Environment(String EnvironmentName, String EnvironmentDescription, String EnvironmentLocation, int EnvironmentTemperature, int EnvironmentArea){
this.EnvironmentName = EnvironmentName;
this.EnvironmentDescription = EnvironmentDescription;
this.EnvironmentTemperature = EnvironmentTemperature;
this.EnvironmentLocation = EnvironmentLocation;
this.EnvironmentArea = EnvironmentArea;
}
}
public class Fish extends Animals {
String FishActs;
Fish(String AnimalsName, String AnimalDescription, String FishActs, String ViewingTime, String FeedingTime) {
super(AnimalsName, AnimalDescription, ViewingTime, FeedingTime);
this.FishActs = FishActs;
}
}
public class FoodType {
String FoodTypeName;
FoodType(String FoodTypeName){
this.FoodTypeName = FoodTypeName;
}
}
public class Mammals extends Animals {
String MammalActs;
Mammals(String AnimalsName, String AnimalDescription, String MammalActs, String ViewingTime, String FeedingTime) {
super(AnimalsName, AnimalDescription, ViewingTime, FeedingTime);
this.MammalActs = MammalActs;
}
}
public class Marine extends Environment{
Marine(String EnvironmentName, String EnvironmentDescription, String EnvironmentLocation, int EnvironmentTemperature, int EnvironmentArea) {
super(EnvironmentName, EnvironmentDescription, EnvironmentLocation, EnvironmentTemperature, EnvironmentArea);
}
}
public class Omnivore extends FoodType {
Omnivore(String FoodTypeName) {
super(FoodTypeName);
}
}
public class Reptiles extends Animals {
String ReptileActs;
Reptiles(String AnimalsName, String AnimalDescription, String ReptileActs, String ViewingTime, String FeedingTime) {
super(AnimalsName, AnimalDescription, ViewingTime, FeedingTime);
this.ReptileActs = ReptileActs;
}
}
public class Savannah extends Environment{
Savannah(String EnvironmentName, String EnvironmentDescription, String EnvironmentLocation, int EnvironmentTemperature, int EnvironmentArea) {
super(EnvironmentName, EnvironmentDescription, EnvironmentLocation, EnvironmentTemperature, EnvironmentArea);
}
}
\ No newline at end of file
public class Vegetarian extends FoodType {
Vegetarian(String FoodTypeName) {
super(FoodTypeName);
}
}
public class Woodlands extends Environment {
Woodlands(String EnvironmentName, String EnvironmentDescription, String EnvironmentLocation, int EnvironmentTemperature, int EnvironmentArea) {
super(EnvironmentName, EnvironmentDescription, EnvironmentLocation, EnvironmentTemperature, EnvironmentArea);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment