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
fa45fb1e
Commit
fa45fb1e
authored
May 10, 2019
by
Théo GORDYJAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify engine type and add interface Option
parent
60366711
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
114 additions
and
63 deletions
+114
-63
workspace.xml
garage/.idea/workspace.xml
+89
-59
DieselEngine.java
garage/src/Engine/DieselEngine.java
+11
-1
Engine.java
garage/src/Engine/Engine.java
+8
-3
Option.java
garage/src/Option/Option.java
+6
-0
package-info.java
garage/src/package-info.java
+0
-0
No files found.
garage/.idea/workspace.xml
View file @
fa45fb1e
This diff is collapsed.
Click to expand it.
garage/src/Engine/DieselEngine.java
View file @
fa45fb1e
package
Engine
;
public
class
DieselEngine
{
public
class
DieselEngine
extends
Engine
{
public
DieselEngine
(
String
_cylindre
,
Double
_price
)
{
super
(
_cylindre
,
_price
);
this
.
type
=
EngineType
.
DIESEL
;
}
public
String
toString
()
{
return
"Diesel Engine"
;
}
}
garage/src/Engine/Engine.java
View file @
fa45fb1e
...
...
@@ -2,18 +2,23 @@ package Engine;
public
class
Engine
{
pr
ivate
EngineType
type
;
pr
otected
EngineType
type
;
private
String
cylindre
;
private
Double
price
;
public
Engine
(
EngineType
_type
,
String
_cylindyre
,
Double
price
)
{
public
Engine
(
String
_cylindre
,
Double
_price
)
{
this
.
cylindre
=
_cylindre
;
this
.
price
=
_price
;
}
public
String
toString
()
{
return
"This vehicle has a "
+
cylindre
+
"engine, it's a "
+
type
+
" engine and it costs "
+
price
+
" €."
;
}
public
String
getCylindre
()
{
return
this
.
cylindre
;
}
public
Double
getPrice
()
{
...
...
garage/src/Option/Option.java
0 → 100644
View file @
fa45fb1e
package
Option
;
public
class
Option
{
}
garage/src/package-info.java
0 → 100644
View file @
fa45fb1e
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