From a5aa2052c2f2a943b53f0cc62b7d2f4e2b6b7670 Mon Sep 17 00:00:00 2001 From: Emmanuel Srivastava Date: Thu, 6 Feb 2025 13:48:43 +0100 Subject: [PATCH] update --- DEV.2.1/TP/TP5-Heritage/Gris.java | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/DEV.2.1/TP/TP5-Heritage/Gris.java b/DEV.2.1/TP/TP5-Heritage/Gris.java index 688bc2e..b978bd4 100644 --- a/DEV.2.1/TP/TP5-Heritage/Gris.java +++ b/DEV.2.1/TP/TP5-Heritage/Gris.java @@ -1,3 +1,26 @@ -public class Gris extends Color{ +import java.awt.Color; +public class Gris extends Color { + + private int rgb1; + private int rgb2; + private int rgb3; + + public Gris(int x,int y,int z) { + x = 128; + y = x = z; + this.rgb1 = x; + this.rgb2 = y; + this.rgb3 = z; + + return x,y,z; + } + + public int verifyRGB(int val1, int val2, int val3) { + + } +l bslslvns + public static void main(String[] args) { + + } } \ No newline at end of file