package com.myapp.test;
public class AnnotationTest {
}
class Parent {
public String accountHtml() {
System.out.println("Parent");
return "Parent";
}
@Deprecated
public void show() {
System.out.println("Dpricated in parent");
}
}
class Child extends Parent {
@Override
public String accountHtml() {
System.out.println("Child");
return "Child";
}
@SuppressWarnings({ "unchecked", "fallthrough" })
public void show1() {
System.out.println("Dpricated in child");
}
}
public class AnnotationTest {
}
class Parent {
public String accountHtml() {
System.out.println("Parent");
return "Parent";
}
@Deprecated
public void show() {
System.out.println("Dpricated in parent");
}
}
class Child extends Parent {
@Override
public String accountHtml() {
System.out.println("Child");
return "Child";
}
@SuppressWarnings({ "unchecked", "fallthrough" })
public void show1() {
System.out.println("Dpricated in child");
}
}