public final class Flaw
{
int age=7;
String name="Bala";
}
class Dflaw extends Flaw
{
public int method()
{
System.out.println("Enter the age=" + age);
System.out.println("Enter the String="
+name);
}}
public static void main(String[] args)
{
Flaw f=new Flaw;
f.age;
f.name;
}
I do not know what is wrong in this ..please post
{
int age=7;
String name="Bala";
}
class Dflaw extends Flaw
{
public int method()
{
System.out.println("Enter the age=" + age);
System.out.println("Enter the String="
+name);
}}
public static void main(String[] args)
{
Flaw f=new Flaw;
f.age;
f.name;
}
I do not know what is wrong in this ..please post