Java Prgms
Java Prgms
Lab393 Lab394
Lab395 Lab396
Lab397 Lab398
Lab401 Lab403
Lab404 Lab405
sp.area(); System.out.println("CurentStudent-
} >walking()");
} }
}
class Lab405{
public static void main(String arg[]){
Person pob=new CurrentStudent();
pob.sleeping();
pob.walking();
}
}
Lab406 Lab407
abstract class Hello{
abstract class Person{ static int A=1234;
abstract void sleeping(); static void show(){
} System.out.println("Hello->show()");
abstract class Student extends Person{ }
void sleeping(){ }
System.out.println("Student->sleeping()"); class Lab407{
} public static void main(String arg[]){
} System.out.println(Hello.A);
class CurrentStudent extends Student{} Hello.show();
class Lab406{ }
public static void main(String arg[]){ }
Person pob=new CurrentStudent();
pob.sleeping();
}
}
Lab408 Lab409
{
System.out.println("Hello->IB");
}
void show(){
System.out.println("Hello->show()");
}
}
Lab410 Lab411
Lab414 Lab415
Lab418 Lab419
Lab420 Lab421
Lab422 Lab423
Lab427 Lab428
Lab433 Lab434
Lab435 Lab436
Lab437 Lab438
Lab439 Lab440
class Lab439{
public static void main(String arg[]){
Person p=new Student();
p.sleeping();
}
}
Lab441 Lab442