When posting code, please use the highlight tags. And please post the specific error you're talking about. I had to copy and paste this code just to know what you were asking. Make it easy for people to help you!
The reason that cv can't access the show() method is because show() is only defined for instances of B. Although cv happens to be an instance of B, there's no guarantee that that's the case when you try to call the show() method. You could also have defined cv as an instance of A, or some other class that extends A but doesn't have the show() method.
This example demonstrates the same concept:
class A {
public static void main(String args[]) {
String strString = "test";
System.out.println(strString.charAt(0));
Object objString = strString;
System.out.println(objString.charAt(0));
}
}