SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
1. Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a few
polymorphic and/or overloaded methods. Do not use Object as the parent class - it is too trivial to
address the issues to be addressed here, and in any case, Object is the final parent of all classes in
Java.
2. Explain in a few sentences the inheritance relationship (parent-child) and its use.
3. Explain in a few sentences the polymorphism (child class overriding a method from the parent
class) and its use.
a) Write one Java class of your own with one method.
b) Write another (second) Java class that will extend the above Java class and overrides the
method from the parent class.
c) Write another (third) Java class that will extend the above Java class and overrides the method
from the parent class.
In other words, these two child classes (subclasses) will override the same method of the parent
class differently. It will be only a few lines of code in each Java class. Write System.out.println
to demonstrate they are printing different result, and that will demonstrate that the methods in the
subclasses are producing different results.
Submit the Java code and write a few sentences to explain the expected result/output of your
code

Contenu connexe

Similaire à 1. Pick a pair of concrete classes in the JDK in a parent-child rela.pdf

06 InheritanceAndPolymorphism.ppt
06 InheritanceAndPolymorphism.ppt06 InheritanceAndPolymorphism.ppt
06 InheritanceAndPolymorphism.pptParikhitGhosh1
 
Java interview questions 2
Java interview questions 2Java interview questions 2
Java interview questions 2Sherihan Anver
 
How do i use inheritance in java?
How do i use inheritance in java?How do i use inheritance in java?
How do i use inheritance in java?kritikumar16
 
How do i use inheritance in java?
How do i use inheritance in java?How do i use inheritance in java?
How do i use inheritance in java?kritikumar16
 
How do i use inheritance in java?
How do i use inheritance in java?How do i use inheritance in java?
How do i use inheritance in java?kritikumar16
 
Object+oriented+programming+in+java
Object+oriented+programming+in+javaObject+oriented+programming+in+java
Object+oriented+programming+in+javaYe Win
 
Top 10 java oops interview questions
Top 10 java oops interview questionsTop 10 java oops interview questions
Top 10 java oops interview questionsnishajj
 
Top 10 java oops interview questions
Top 10 java oops interview questionsTop 10 java oops interview questions
Top 10 java oops interview questionsnishajj
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsnishajj
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsnishajj
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsnishajj
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsnishajj
 
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdfJAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdfnofakeNews
 
25 java interview questions
25 java interview questions25 java interview questions
25 java interview questionsMehtaacademy
 
Ap Power Point Chpt7
Ap Power Point Chpt7Ap Power Point Chpt7
Ap Power Point Chpt7dplunkett
 
Unit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfUnit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfArpana Awasthi
 

Similaire à 1. Pick a pair of concrete classes in the JDK in a parent-child rela.pdf (20)

06 InheritanceAndPolymorphism.ppt
06 InheritanceAndPolymorphism.ppt06 InheritanceAndPolymorphism.ppt
06 InheritanceAndPolymorphism.ppt
 
Java interview questions 2
Java interview questions 2Java interview questions 2
Java interview questions 2
 
How do i use inheritance in java?
How do i use inheritance in java?How do i use inheritance in java?
How do i use inheritance in java?
 
How do i use inheritance in java?
How do i use inheritance in java?How do i use inheritance in java?
How do i use inheritance in java?
 
How do i use inheritance in java?
How do i use inheritance in java?How do i use inheritance in java?
How do i use inheritance in java?
 
Unit 4
Unit 4Unit 4
Unit 4
 
Object+oriented+programming+in+java
Object+oriented+programming+in+javaObject+oriented+programming+in+java
Object+oriented+programming+in+java
 
Top 10 java oops interview questions
Top 10 java oops interview questionsTop 10 java oops interview questions
Top 10 java oops interview questions
 
Top 10 java oops interview questions
Top 10 java oops interview questionsTop 10 java oops interview questions
Top 10 java oops interview questions
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questions
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questions
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questions
 
Top 10 java_oops_interview_questions
Top 10 java_oops_interview_questionsTop 10 java_oops_interview_questions
Top 10 java_oops_interview_questions
 
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdfJAVA VIVA QUESTIONS_CODERS LODGE.pdf
JAVA VIVA QUESTIONS_CODERS LODGE.pdf
 
Core java by amit
Core java by amitCore java by amit
Core java by amit
 
25 java interview questions
25 java interview questions25 java interview questions
25 java interview questions
 
Ap Power Point Chpt7
Ap Power Point Chpt7Ap Power Point Chpt7
Ap Power Point Chpt7
 
Delphi qa
Delphi qaDelphi qa
Delphi qa
 
PPT Lecture-1.4.pptx
PPT Lecture-1.4.pptxPPT Lecture-1.4.pptx
PPT Lecture-1.4.pptx
 
Unit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdfUnit 2 Part 1 POLYMORPHISM.pdf
Unit 2 Part 1 POLYMORPHISM.pdf
 

Plus de alokopticalswatchco0

1. Los usuarios externos de informaci�n de contabilidad financiera i.pdf
1. Los usuarios externos de informaci�n de contabilidad financiera i.pdf1. Los usuarios externos de informaci�n de contabilidad financiera i.pdf
1. Los usuarios externos de informaci�n de contabilidad financiera i.pdfalokopticalswatchco0
 
1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdf
1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdf1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdf
1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdfalokopticalswatchco0
 
1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdf
1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdf1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdf
1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdfalokopticalswatchco0
 
1. La radiaci�n solar consiste en ondas principalmente en el longi.pdf
1. La radiaci�n solar consiste en ondas principalmente en el longi.pdf1. La radiaci�n solar consiste en ondas principalmente en el longi.pdf
1. La radiaci�n solar consiste en ondas principalmente en el longi.pdfalokopticalswatchco0
 
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdfalokopticalswatchco0
 
1. Mark presents a five-year vision to his team that focuses on fina.pdf
1. Mark presents a five-year vision to his team that focuses on fina.pdf1. Mark presents a five-year vision to his team that focuses on fina.pdf
1. Mark presents a five-year vision to his team that focuses on fina.pdfalokopticalswatchco0
 
1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdf
1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdf1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdf
1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdfalokopticalswatchco0
 
1. Los elementos de la estrategia de Hershey Company han evolucionad.pdf
1. Los elementos de la estrategia de Hershey Company han evolucionad.pdf1. Los elementos de la estrategia de Hershey Company han evolucionad.pdf
1. Los elementos de la estrategia de Hershey Company han evolucionad.pdfalokopticalswatchco0
 
1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdf
1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdf1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdf
1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdfalokopticalswatchco0
 
1. List two of the major causes of habitat loss today.2. List tw.pdf
1. List two of the major causes of habitat loss today.2. List tw.pdf1. List two of the major causes of habitat loss today.2. List tw.pdf
1. List two of the major causes of habitat loss today.2. List tw.pdfalokopticalswatchco0
 
1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdf
1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdf1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdf
1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdfalokopticalswatchco0
 
1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdf
1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdf1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdf
1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdfalokopticalswatchco0
 
1. Las normas propuestas para implementar una ley son a. No est� a.pdf
1. Las normas propuestas para implementar una ley son a. No est� a.pdf1. Las normas propuestas para implementar una ley son a. No est� a.pdf
1. Las normas propuestas para implementar una ley son a. No est� a.pdfalokopticalswatchco0
 
1. La secci�n de activos de un balance general clasificado incluye .pdf
1. La secci�n de activos de un balance general clasificado incluye .pdf1. La secci�n de activos de un balance general clasificado incluye .pdf
1. La secci�n de activos de un balance general clasificado incluye .pdfalokopticalswatchco0
 
1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdf
1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdf1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdf
1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdfalokopticalswatchco0
 
1. Las siguientes son las etapas principales del proceso de compra e.pdf
1. Las siguientes son las etapas principales del proceso de compra e.pdf1. Las siguientes son las etapas principales del proceso de compra e.pdf
1. Las siguientes son las etapas principales del proceso de compra e.pdfalokopticalswatchco0
 
1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdf
1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdf1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdf
1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdfalokopticalswatchco0
 
1. La gente en general lleva una sola identidad. b una o quiz�s .pdf
1. La gente en general lleva una sola identidad. b una o quiz�s .pdf1. La gente en general lleva una sola identidad. b una o quiz�s .pdf
1. La gente en general lleva una sola identidad. b una o quiz�s .pdfalokopticalswatchco0
 
1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdf
1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdf1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdf
1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdfalokopticalswatchco0
 
1. La delimitaci�n entre negocios convencionales, negocios sociales .pdf
1. La delimitaci�n entre negocios convencionales, negocios sociales .pdf1. La delimitaci�n entre negocios convencionales, negocios sociales .pdf
1. La delimitaci�n entre negocios convencionales, negocios sociales .pdfalokopticalswatchco0
 

Plus de alokopticalswatchco0 (20)

1. Los usuarios externos de informaci�n de contabilidad financiera i.pdf
1. Los usuarios externos de informaci�n de contabilidad financiera i.pdf1. Los usuarios externos de informaci�n de contabilidad financiera i.pdf
1. Los usuarios externos de informaci�n de contabilidad financiera i.pdf
 
1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdf
1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdf1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdf
1. Para cada uno de los siguientes, inserte una o m�s letras may�scu.pdf
 
1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdf
1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdf1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdf
1. only extrachromosomal ribosomal DNA circles are not transmitted f.pdf
 
1. La radiaci�n solar consiste en ondas principalmente en el longi.pdf
1. La radiaci�n solar consiste en ondas principalmente en el longi.pdf1. La radiaci�n solar consiste en ondas principalmente en el longi.pdf
1. La radiaci�n solar consiste en ondas principalmente en el longi.pdf
 
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
 
1. Mark presents a five-year vision to his team that focuses on fina.pdf
1. Mark presents a five-year vision to his team that focuses on fina.pdf1. Mark presents a five-year vision to his team that focuses on fina.pdf
1. Mark presents a five-year vision to his team that focuses on fina.pdf
 
1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdf
1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdf1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdf
1. Los GAAP requieren que cierta informaci�n actuarial para las pens.pdf
 
1. Los elementos de la estrategia de Hershey Company han evolucionad.pdf
1. Los elementos de la estrategia de Hershey Company han evolucionad.pdf1. Los elementos de la estrategia de Hershey Company han evolucionad.pdf
1. Los elementos de la estrategia de Hershey Company han evolucionad.pdf
 
1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdf
1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdf1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdf
1. Los peces lech�n viven en el oc�ano. Estos peces se adhieren a la.pdf
 
1. List two of the major causes of habitat loss today.2. List tw.pdf
1. List two of the major causes of habitat loss today.2. List tw.pdf1. List two of the major causes of habitat loss today.2. List tw.pdf
1. List two of the major causes of habitat loss today.2. List tw.pdf
 
1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdf
1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdf1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdf
1. Los candidatos de trabajo m�s exitosos usan redes para encontrar .pdf
 
1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdf
1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdf1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdf
1. Los Criterios de Daubert hacen preguntas espec�ficas sobre la adm.pdf
 
1. Las normas propuestas para implementar una ley son a. No est� a.pdf
1. Las normas propuestas para implementar una ley son a. No est� a.pdf1. Las normas propuestas para implementar una ley son a. No est� a.pdf
1. Las normas propuestas para implementar una ley son a. No est� a.pdf
 
1. La secci�n de activos de un balance general clasificado incluye .pdf
1. La secci�n de activos de un balance general clasificado incluye .pdf1. La secci�n de activos de un balance general clasificado incluye .pdf
1. La secci�n de activos de un balance general clasificado incluye .pdf
 
1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdf
1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdf1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdf
1. Las manos de un pastelero inoculan seis c�lulas de Staphylococcus.pdf
 
1. Las siguientes son las etapas principales del proceso de compra e.pdf
1. Las siguientes son las etapas principales del proceso de compra e.pdf1. Las siguientes son las etapas principales del proceso de compra e.pdf
1. Las siguientes son las etapas principales del proceso de compra e.pdf
 
1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdf
1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdf1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdf
1. La madre A es Rh, mientras que el padre A es Rh+. �Cu�les son tod.pdf
 
1. La gente en general lleva una sola identidad. b una o quiz�s .pdf
1. La gente en general lleva una sola identidad. b una o quiz�s .pdf1. La gente en general lleva una sola identidad. b una o quiz�s .pdf
1. La gente en general lleva una sola identidad. b una o quiz�s .pdf
 
1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdf
1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdf1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdf
1. La fuente de carbono para la respiraci�n es... A.el sol B.agu.pdf
 
1. La delimitaci�n entre negocios convencionales, negocios sociales .pdf
1. La delimitaci�n entre negocios convencionales, negocios sociales .pdf1. La delimitaci�n entre negocios convencionales, negocios sociales .pdf
1. La delimitaci�n entre negocios convencionales, negocios sociales .pdf
 

Dernier

Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptxAneriPatwari
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 

Dernier (20)

Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 

1. Pick a pair of concrete classes in the JDK in a parent-child rela.pdf

  • 1. 1. Pick a pair of concrete classes in the JDK in a parent-child relationship and discuss a few polymorphic and/or overloaded methods. Do not use Object as the parent class - it is too trivial to address the issues to be addressed here, and in any case, Object is the final parent of all classes in Java. 2. Explain in a few sentences the inheritance relationship (parent-child) and its use. 3. Explain in a few sentences the polymorphism (child class overriding a method from the parent class) and its use. a) Write one Java class of your own with one method. b) Write another (second) Java class that will extend the above Java class and overrides the method from the parent class. c) Write another (third) Java class that will extend the above Java class and overrides the method from the parent class. In other words, these two child classes (subclasses) will override the same method of the parent class differently. It will be only a few lines of code in each Java class. Write System.out.println to demonstrate they are printing different result, and that will demonstrate that the methods in the subclasses are producing different results. Submit the Java code and write a few sentences to explain the expected result/output of your code