What will be the output?
1. public interface InfA{
2.       protected String getName();
3. }

public class Test implements InfA{
      public String getName(){
            return "test-name";
      }
      public static void main (String[] args){
            Test t = new Test();
            System.out.println(t.getName());
      }
}

Views 👁 2,093


Answer


Warning: Undefined array key "answer" in /home/u981206607/domains/rummanansari.com/public_html/app/views/questions/explanatory.php on line 21