import [Link].
*;
abstract class BB{
abstract void display();
class BB1 extends BB{
String name;
int age;
String bg;
String pn;
int w;
void display(){
Scanner s=new Scanner([Link]);
[Link]("Enter the Patient Name:");
name=[Link]();
[Link]("Enter the Patient Age:");
age=[Link]();
[Link]();
[Link]("Enter the Patient bloodgroup:");
bg=[Link]();
[Link]("Enter the Patient Phonenumber: ");
pn=[Link]();
[Link]("Enter the Patient Weight:");
w=[Link]();
void print(){
[Link]("---------------------Patient Details---------------");
[Link]("Patient name:"+name);
[Link]("Patient age:"+age);
[Link]("Patient Bloodgroup:"+bg);
[Link]("Patient phonenumber:"+pn);
[Link]("Patient Weight:"+w);
ARUNMANIKANDAN.K
24CSEA39
}
public class AC {
public static void main(String[] args) {
BB1 b1=new BB1();
[Link]();
[Link]();
ARUNMANIKANDAN.K
24CSEA39