Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Projet GORDYJAN_BAGNOLY_GARCIA_POIGNONNEC
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POIGNONNEC
Projet GORDYJAN_BAGNOLY_GARCIA_POIGNONNEC
Commits
7968a17a
Commit
7968a17a
authored
May 07, 2019
by
Théo GORDYJAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first_push
parent
b13f4fb0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
240 additions
and
51 deletions
+240
-51
workspace.xml
garage/.idea/workspace.xml
+183
-50
Brand.java
garage/src/main/Brand.java
+8
-0
Main.java
garage/src/main/Main.java
+6
-1
Vehicle.java
garage/src/main/Vehicle.java
+34
-0
engineType.java
garage/src/main/engineType.java
+9
-0
No files found.
garage/.idea/workspace.xml
View file @
7968a17a
This diff is collapsed.
Click to expand it.
garage/src/main/Brand.java
0 → 100644
View file @
7968a17a
package
main
;
public
enum
Brand
{
RENAULT
,
PEUGEOT
,
CITROEN
;
}
garage/src/main/Main.java
View file @
7968a17a
...
...
@@ -3,6 +3,11 @@ package main;
public
class
Main
{
public
static
void
main
(
String
[]
args
)
{
// write your code here
// CREATE vehicle LAGUNA
// CREATE vehicle D4
// CREATE vehicle A300B
}
}
garage/src/main/Vehicle.java
0 → 100644
View file @
7968a17a
package
main
;
public
class
Vehicle
{
private
Double
price
;
private
String
name
;
// private options List<Option>
// private brandName Brand
// METHODS
// Print the name of the car with the options and the price.
// public String toString()
// return "\t" + this.brandName + "is a " + name + " with that options : + " ?? " + ". Price : " + price.
// Add an option
// public void addOption(opt : Option)
// GETTER
// Get the brand of the car
// public Brand getBrand()
// Get the options of the car
// public List<Option> getOptions()
// Get the price of the car
// public Double getPrice();
}
garage/src/main/engineType.java
0 → 100644
View file @
7968a17a
package
main
;
public
enum
engineType
{
DIESEL
,
PETROL
,
HYBRID
,
ELECTRIC
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment