Write a complete class named Crab that includes a String property named myColor and an int property named myAge.
You must also include a default constructor that initializes myColor to RED and myAge to zero as well as an “other” constructor that accepts two parameters and uses them appropriately.
You must also implement the getAge and setAge methods.
Next
Construct a Crab CB1 object using default constructor and invoke all accessible methods.
Construct a second Crab object CB2 using parameterized constructor and invoke all accessible methods.
Describe the outcome.
En esta página del sitio puede ver el video en línea OOP Practice 2 | Classes and Objects | JAVA de Duración hora minuto segunda en buena calidad , que subió el usuario The CS Revelation 13 abril 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 198 veces y le gustó 8 a los espectadores. Disfruta viendo!