using inheritance gettin null values
class Person{
public static void main(String[] args)
{
Info i=new Info();
SoftwareEngineer p=new SoftwareEngineer();
i.Age(33);
i.Qual("B.E in cse MBA");
p.printinfo();
}
}
class SoftwareEngineer extends Info
{
}
class Info{
int age;
String qual;
void Age(int value)
{
age=value;
}
void Qual(String string)
{
qual=string;
}
void printinfo()
{
System.out.println("the qual of the client is " qual);
System.out.println("the age of the client is" age);
}
}
my output is null vales whats wrong