Comment

vani
try this kanivalavn class A { void kani() {,
February 27, 2007 at 12:50 PM

try this kanivalavn

class A
{
void kani()
{
System.out.println("kani");
}
}
class B extends A
{
void valavan()
{
System.out.println("valavan");
}
}


class Exam
{
public static void main(String args[])
{
A a=new A();
B b=new B();
a.kani();
b.valavan();
}
}
View All Comments | View Tutorial
Related Tutorial and Articles

Advertisements

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles