Hey all. Iam new to java and I have been trying to do something that has played me abit. I want to use an attribute or a method from a subclass and accesing it from the super class. Something like this
class A{
//some code
}
class B extends A{
public String a;
public String getMeth()
{
//
return something;
}
}
The above is just a sketch for illustration purposes. But what I want to do is to use the method or the attribute in the "class b" in A. Thanx for any help