Home Tutorialhelp Comment try this kanivalavn class A { void kani() {

 
 

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
Advertisement
Related Tutorial and Articles
Advertisements Advertisements
 

 

 

DMCA.com