olá pessoal ,
resolvendo ao problema abaixo achei dois metodos para resolver o problema
mas na resposta tem tres metodos …
a resposta é dois ou tres
alguem poderia me ajudar
abs
Section 1: Declarations, Initialization and Scoping > Objective 1.2 > Question 3
Given:
1. abstract class Color {
2. protected abstract String getRGB();
3. }
4.
5. public class Blue extends Color {
6. // insert code here
7. }
And four declarations:
public String getRGB() { return "blue"; }
String getRGB() { return "blue"; }
private String getRGB() { return "blue"; }
protected String getRGB() { return "blue"; }
How many, inserted independently at line 6, will compile?