Skip to content
Snippets Groups Projects
Commit 5430d003 authored by VIOLA Anthony's avatar VIOLA Anthony
Browse files

Exercice 2 TP3

parent 25e4881d
No related branches found
No related tags found
No related merge requests found
Pipeline #21404 failed
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="corretto-16" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
package shape;
abstract public class AbstractShape implements Shape {
}
package shape;
abstract public class Decorator implements Shape{
private Shape decoratedShape;
Decorator(){
}
}
......@@ -4,7 +4,7 @@ import javafx.geometry.Point2D;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
public class Rectangle implements Shape{
public class Rectangle extends AbstractShape{
Color color;
Rectangle(Color color, Point2D point0, Point2D point1){
this.color = color;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment