SlideShare a Scribd company logo
1 of 1
Write a java program using BlueJ: a) Create a class "Patient" with data members Pname, Page
and Pid. Declare a method displa which display the details of patient. b) Create a subclass
"Inpatient" which inherits the Patient class and implements interface and declare a method to
display the message "Inheritance Program". c) Create an interface and declare a method to print
your name. d) Create an instance for each class and call the method.

More Related Content

More from EvanadoJamesz

Which of the following statements about errors in cell division is fal.docx
Which of the following statements about errors in cell division is fal.docxWhich of the following statements about errors in cell division is fal.docx
Which of the following statements about errors in cell division is fal.docxEvanadoJamesz
 
Which of the following statements is most likely incorrect- Which of t.docx
Which of the following statements is most likely incorrect- Which of t.docxWhich of the following statements is most likely incorrect- Which of t.docx
Which of the following statements is most likely incorrect- Which of t.docxEvanadoJamesz
 
Which of the following statements is an accurate description of Newton.docx
Which of the following statements is an accurate description of Newton.docxWhich of the following statements is an accurate description of Newton.docx
Which of the following statements is an accurate description of Newton.docxEvanadoJamesz
 
Which of the following statements regarding endochondral ossification.docx
Which of the following statements regarding endochondral ossification.docxWhich of the following statements regarding endochondral ossification.docx
Which of the following statements regarding endochondral ossification.docxEvanadoJamesz
 
Which of the following programs multiply the contents of the D1 regist.docx
Which of the following programs multiply the contents of the D1 regist.docxWhich of the following programs multiply the contents of the D1 regist.docx
Which of the following programs multiply the contents of the D1 regist.docxEvanadoJamesz
 
Which of the following statements is true- Explain why each statement.docx
Which of the following statements is true- Explain why each statement.docxWhich of the following statements is true- Explain why each statement.docx
Which of the following statements is true- Explain why each statement.docxEvanadoJamesz
 
Which one is a block tag- A- epres B- h1- C- E-.docx
Which one is a block tag- A- epres B- h1- C-  E-.docxWhich one is a block tag- A- epres B- h1- C-  E-.docx
Which one is a block tag- A- epres B- h1- C- E-.docxEvanadoJamesz
 
Which one is NOT a primary factor of an environmental assessment- Soci.docx
Which one is NOT a primary factor of an environmental assessment- Soci.docxWhich one is NOT a primary factor of an environmental assessment- Soci.docx
Which one is NOT a primary factor of an environmental assessment- Soci.docxEvanadoJamesz
 
Write a JAVA program with two classes- First class called Calclastname.docx
Write a JAVA program with two classes- First class called Calclastname.docxWrite a JAVA program with two classes- First class called Calclastname.docx
Write a JAVA program with two classes- First class called Calclastname.docxEvanadoJamesz
 
Write a Java method that takes two linked lists of integers- and and m.docx
Write a Java method that takes two linked lists of integers- and and m.docxWrite a Java method that takes two linked lists of integers- and and m.docx
Write a Java method that takes two linked lists of integers- and and m.docxEvanadoJamesz
 
Write a java program using BlueJ- a) Create a class shop that contains.docx
Write a java program using BlueJ- a) Create a class shop that contains.docxWrite a java program using BlueJ- a) Create a class shop that contains.docx
Write a java program using BlueJ- a) Create a class shop that contains.docxEvanadoJamesz
 
Write a C++ program to create a class to throw separate exceptions on.docx
Write a C++ program to create a class to throw separate exceptions on.docxWrite a C++ program to create a class to throw separate exceptions on.docx
Write a C++ program to create a class to throw separate exceptions on.docxEvanadoJamesz
 
Write a code that defines an integer array of size 10- Initialize arra.docx
Write a code that defines an integer array of size 10- Initialize arra.docxWrite a code that defines an integer array of size 10- Initialize arra.docx
Write a code that defines an integer array of size 10- Initialize arra.docxEvanadoJamesz
 
Write a C program that- Declares 2 structures to store a recipe 1- An.docx
Write a C program that- Declares 2 structures to store a recipe 1- An.docxWrite a C program that- Declares 2 structures to store a recipe 1- An.docx
Write a C program that- Declares 2 structures to store a recipe 1- An.docxEvanadoJamesz
 
Write a bash shell named X that takes 2 arguments- F and PID- The X c.docx
Write a bash shell named X that takes 2 arguments- F and PID-  The X c.docxWrite a bash shell named X that takes 2 arguments- F and PID-  The X c.docx
Write a bash shell named X that takes 2 arguments- F and PID- The X c.docxEvanadoJamesz
 
WRITE C++ recursive function PrintPattern2- to print following patter.docx
WRITE  C++ recursive function PrintPattern2- to print following patter.docxWRITE  C++ recursive function PrintPattern2- to print following patter.docx
WRITE C++ recursive function PrintPattern2- to print following patter.docxEvanadoJamesz
 
Why does phenylalanine accumulate in patients with phenylketonuria- Th.docx
Why does phenylalanine accumulate in patients with phenylketonuria- Th.docxWhy does phenylalanine accumulate in patients with phenylketonuria- Th.docx
Why does phenylalanine accumulate in patients with phenylketonuria- Th.docxEvanadoJamesz
 
Would the SPIN Selling technique increase your likelihood in securing.docx
Would the SPIN Selling technique increase your likelihood in securing.docxWould the SPIN Selling technique increase your likelihood in securing.docx
Would the SPIN Selling technique increase your likelihood in securing.docxEvanadoJamesz
 
Workplace Bullying- A Case for Business Leaders Workplace bullying is.docx
Workplace Bullying- A Case for Business Leaders Workplace bullying is.docxWorkplace Bullying- A Case for Business Leaders Workplace bullying is.docx
Workplace Bullying- A Case for Business Leaders Workplace bullying is.docxEvanadoJamesz
 
Write code in C++ Define a class called Wallet that represents numbe.docx
Write  code in C++  Define a class called Wallet that represents numbe.docxWrite  code in C++  Define a class called Wallet that represents numbe.docx
Write code in C++ Define a class called Wallet that represents numbe.docxEvanadoJamesz
 

More from EvanadoJamesz (20)

Which of the following statements about errors in cell division is fal.docx
Which of the following statements about errors in cell division is fal.docxWhich of the following statements about errors in cell division is fal.docx
Which of the following statements about errors in cell division is fal.docx
 
Which of the following statements is most likely incorrect- Which of t.docx
Which of the following statements is most likely incorrect- Which of t.docxWhich of the following statements is most likely incorrect- Which of t.docx
Which of the following statements is most likely incorrect- Which of t.docx
 
Which of the following statements is an accurate description of Newton.docx
Which of the following statements is an accurate description of Newton.docxWhich of the following statements is an accurate description of Newton.docx
Which of the following statements is an accurate description of Newton.docx
 
Which of the following statements regarding endochondral ossification.docx
Which of the following statements regarding endochondral ossification.docxWhich of the following statements regarding endochondral ossification.docx
Which of the following statements regarding endochondral ossification.docx
 
Which of the following programs multiply the contents of the D1 regist.docx
Which of the following programs multiply the contents of the D1 regist.docxWhich of the following programs multiply the contents of the D1 regist.docx
Which of the following programs multiply the contents of the D1 regist.docx
 
Which of the following statements is true- Explain why each statement.docx
Which of the following statements is true- Explain why each statement.docxWhich of the following statements is true- Explain why each statement.docx
Which of the following statements is true- Explain why each statement.docx
 
Which one is a block tag- A- epres B- h1- C- E-.docx
Which one is a block tag- A- epres B- h1- C-  E-.docxWhich one is a block tag- A- epres B- h1- C-  E-.docx
Which one is a block tag- A- epres B- h1- C- E-.docx
 
Which one is NOT a primary factor of an environmental assessment- Soci.docx
Which one is NOT a primary factor of an environmental assessment- Soci.docxWhich one is NOT a primary factor of an environmental assessment- Soci.docx
Which one is NOT a primary factor of an environmental assessment- Soci.docx
 
Write a JAVA program with two classes- First class called Calclastname.docx
Write a JAVA program with two classes- First class called Calclastname.docxWrite a JAVA program with two classes- First class called Calclastname.docx
Write a JAVA program with two classes- First class called Calclastname.docx
 
Write a Java method that takes two linked lists of integers- and and m.docx
Write a Java method that takes two linked lists of integers- and and m.docxWrite a Java method that takes two linked lists of integers- and and m.docx
Write a Java method that takes two linked lists of integers- and and m.docx
 
Write a java program using BlueJ- a) Create a class shop that contains.docx
Write a java program using BlueJ- a) Create a class shop that contains.docxWrite a java program using BlueJ- a) Create a class shop that contains.docx
Write a java program using BlueJ- a) Create a class shop that contains.docx
 
Write a C++ program to create a class to throw separate exceptions on.docx
Write a C++ program to create a class to throw separate exceptions on.docxWrite a C++ program to create a class to throw separate exceptions on.docx
Write a C++ program to create a class to throw separate exceptions on.docx
 
Write a code that defines an integer array of size 10- Initialize arra.docx
Write a code that defines an integer array of size 10- Initialize arra.docxWrite a code that defines an integer array of size 10- Initialize arra.docx
Write a code that defines an integer array of size 10- Initialize arra.docx
 
Write a C program that- Declares 2 structures to store a recipe 1- An.docx
Write a C program that- Declares 2 structures to store a recipe 1- An.docxWrite a C program that- Declares 2 structures to store a recipe 1- An.docx
Write a C program that- Declares 2 structures to store a recipe 1- An.docx
 
Write a bash shell named X that takes 2 arguments- F and PID- The X c.docx
Write a bash shell named X that takes 2 arguments- F and PID-  The X c.docxWrite a bash shell named X that takes 2 arguments- F and PID-  The X c.docx
Write a bash shell named X that takes 2 arguments- F and PID- The X c.docx
 
WRITE C++ recursive function PrintPattern2- to print following patter.docx
WRITE  C++ recursive function PrintPattern2- to print following patter.docxWRITE  C++ recursive function PrintPattern2- to print following patter.docx
WRITE C++ recursive function PrintPattern2- to print following patter.docx
 
Why does phenylalanine accumulate in patients with phenylketonuria- Th.docx
Why does phenylalanine accumulate in patients with phenylketonuria- Th.docxWhy does phenylalanine accumulate in patients with phenylketonuria- Th.docx
Why does phenylalanine accumulate in patients with phenylketonuria- Th.docx
 
Would the SPIN Selling technique increase your likelihood in securing.docx
Would the SPIN Selling technique increase your likelihood in securing.docxWould the SPIN Selling technique increase your likelihood in securing.docx
Would the SPIN Selling technique increase your likelihood in securing.docx
 
Workplace Bullying- A Case for Business Leaders Workplace bullying is.docx
Workplace Bullying- A Case for Business Leaders Workplace bullying is.docxWorkplace Bullying- A Case for Business Leaders Workplace bullying is.docx
Workplace Bullying- A Case for Business Leaders Workplace bullying is.docx
 
Write code in C++ Define a class called Wallet that represents numbe.docx
Write  code in C++  Define a class called Wallet that represents numbe.docxWrite  code in C++  Define a class called Wallet that represents numbe.docx
Write code in C++ Define a class called Wallet that represents numbe.docx
 

Recently uploaded

Pharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdfPharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdfBALASUNDARESAN M
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 

Recently uploaded (20)

Pharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdfPharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdf
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 

Write a java program using BlueJ- a) Create a class -Patient- with dat.docx

  • 1. Write a java program using BlueJ: a) Create a class "Patient" with data members Pname, Page and Pid. Declare a method displa which display the details of patient. b) Create a subclass "Inpatient" which inherits the Patient class and implements interface and declare a method to display the message "Inheritance Program". c) Create an interface and declare a method to print your name. d) Create an instance for each class and call the method.