SlideShare a Scribd company logo
1.If we want to add a new Crow class,first of all we have to observe what is the type of Crow
class.Crow is a type of Bird.As is having the features of the Bird we have to make the Crow class
as a subclass to Bird class.
2.Actually we kept the bodyTemperature variable in Reptile class.But we know every living
thing has a body temperature.So we have to use that variable in the super class or parent class of
all the classes.
So we have to put that bodyTemperature varuable in the animal class(This is the super class of
all te classes here).So that all animals will have bodytemperature.Means the subclasses of the
Animal class like Reptile class and Bird class will have body temperature.
If we use bodyTemperature in Reptile class.We can use it only in the Reptile class and its
subclasses.We can use it the Bird Class and its sub classes.
3)If we want to make an Ostrich class as a subclass to Bird class,and also if we want to disable
the fly() method of Bird class in Ostrich class we have to override the fly() method in the Ostrich
class and we dont have to provide any implementation for that overridden fly() method .So that if
we call the fly() method in Ostrich it will not do anything or we can write
UnsupportedOperationException.
class Ostrich extends Bird
{
@Override
fly()
{
}
}
_______________( OR )___________________
class Ostrich extends Bird
{
@Override
fly()
{
UnsupportedOperationException();
}
}
_________________________________________
Solution
1.If we want to add a new Crow class,first of all we have to observe what is the type of Crow
class.Crow is a type of Bird.As is having the features of the Bird we have to make the Crow class
as a subclass to Bird class.
2.Actually we kept the bodyTemperature variable in Reptile class.But we know every living
thing has a body temperature.So we have to use that variable in the super class or parent class of
all the classes.
So we have to put that bodyTemperature varuable in the animal class(This is the super class of
all te classes here).So that all animals will have bodytemperature.Means the subclasses of the
Animal class like Reptile class and Bird class will have body temperature.
If we use bodyTemperature in Reptile class.We can use it only in the Reptile class and its
subclasses.We can use it the Bird Class and its sub classes.
3)If we want to make an Ostrich class as a subclass to Bird class,and also if we want to disable
the fly() method of Bird class in Ostrich class we have to override the fly() method in the Ostrich
class and we dont have to provide any implementation for that overridden fly() method .So that if
we call the fly() method in Ostrich it will not do anything or we can write
UnsupportedOperationException.
class Ostrich extends Bird
{
@Override
fly()
{
}
}
_______________( OR )___________________
class Ostrich extends Bird
{
@Override
fly()
{
UnsupportedOperationException();
}
}
_________________________________________

More Related Content

More from rakeshankur

b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf
                     b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf                     b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf
b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf
rakeshankur
 
The periodic table of the chemical elements (also known as the perio.pdf
The periodic table of the chemical elements (also known as the perio.pdfThe periodic table of the chemical elements (also known as the perio.pdf
The periodic table of the chemical elements (also known as the perio.pdf
rakeshankur
 
The answer is c, Polonium. An alpha particle contains two protons .pdf
The answer is c, Polonium. An alpha particle contains two protons .pdfThe answer is c, Polonium. An alpha particle contains two protons .pdf
The answer is c, Polonium. An alpha particle contains two protons .pdf
rakeshankur
 
Solutionclass IntNode { int data; public IntNode next,head;.pdf
Solutionclass IntNode { int data; public IntNode next,head;.pdfSolutionclass IntNode { int data; public IntNode next,head;.pdf
Solutionclass IntNode { int data; public IntNode next,head;.pdf
rakeshankur
 
Answer is I, II, and V (5) .pdf
                     Answer is I, II, and V (5)                       .pdf                     Answer is I, II, and V (5)                       .pdf
Answer is I, II, and V (5) .pdf
rakeshankur
 
Medical importance of bacteriaEcological importance of bacteria.pdf
Medical importance of bacteriaEcological importance of bacteria.pdfMedical importance of bacteriaEcological importance of bacteria.pdf
Medical importance of bacteriaEcological importance of bacteria.pdf
rakeshankur
 
import turtleimport timeimport randomdef draw_rectangle(length.pdf
import turtleimport timeimport randomdef draw_rectangle(length.pdfimport turtleimport timeimport randomdef draw_rectangle(length.pdf
import turtleimport timeimport randomdef draw_rectangle(length.pdf
rakeshankur
 
Effects of NaCl Concentration on Red Blood Cell Volume A red blo.pdf
Effects of NaCl Concentration on Red Blood Cell Volume A red blo.pdfEffects of NaCl Concentration on Red Blood Cell Volume A red blo.pdf
Effects of NaCl Concentration on Red Blood Cell Volume A red blo.pdf
rakeshankur
 
C) 0.3275SolutionC) 0.3275.pdf
C) 0.3275SolutionC) 0.3275.pdfC) 0.3275SolutionC) 0.3275.pdf
C) 0.3275SolutionC) 0.3275.pdf
rakeshankur
 
ass smokeSolutionass smoke.pdf
ass smokeSolutionass smoke.pdfass smokeSolutionass smoke.pdf
ass smokeSolutionass smoke.pdf
rakeshankur
 
Answer-Possible types of audit for this project1. Financial au.pdf
Answer-Possible types of audit for this project1. Financial au.pdfAnswer-Possible types of audit for this project1. Financial au.pdf
Answer-Possible types of audit for this project1. Financial au.pdf
rakeshankur
 
4 1 2 3 Solution 4 1 2 3.pdf
                     4 1 2 3  Solution                     4 1 2 3.pdf                     4 1 2 3  Solution                     4 1 2 3.pdf
4 1 2 3 Solution 4 1 2 3.pdf
rakeshankur
 
Ans to Q4.Colloid is a particular state of matter.A colloidal sy.pdf
Ans to Q4.Colloid is a particular state of matter.A colloidal sy.pdfAns to Q4.Colloid is a particular state of matter.A colloidal sy.pdf
Ans to Q4.Colloid is a particular state of matter.A colloidal sy.pdf
rakeshankur
 
Answer B and D.Both CTRL-Z and end break out of configuration mod.pdf
Answer B and D.Both CTRL-Z and end break out of configuration mod.pdfAnswer B and D.Both CTRL-Z and end break out of configuration mod.pdf
Answer B and D.Both CTRL-Z and end break out of configuration mod.pdf
rakeshankur
 
Amphipathic means that the molecule has a polar, hydrophillic end an.pdf
Amphipathic means that the molecule has a polar, hydrophillic end an.pdfAmphipathic means that the molecule has a polar, hydrophillic end an.pdf
Amphipathic means that the molecule has a polar, hydrophillic end an.pdf
rakeshankur
 
Moran Enterprises Inc. (All values in $) Multi Step Income Sta.pdf
    Moran Enterprises Inc.  (All values in $)    Multi Step Income Sta.pdf    Moran Enterprises Inc.  (All values in $)    Multi Step Income Sta.pdf
Moran Enterprises Inc. (All values in $) Multi Step Income Sta.pdf
rakeshankur
 

More from rakeshankur (16)

b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf
                     b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf                     b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf
b.glucose, HOCl, NaCl, MgCl2 increase in ionic ch.pdf
 
The periodic table of the chemical elements (also known as the perio.pdf
The periodic table of the chemical elements (also known as the perio.pdfThe periodic table of the chemical elements (also known as the perio.pdf
The periodic table of the chemical elements (also known as the perio.pdf
 
The answer is c, Polonium. An alpha particle contains two protons .pdf
The answer is c, Polonium. An alpha particle contains two protons .pdfThe answer is c, Polonium. An alpha particle contains two protons .pdf
The answer is c, Polonium. An alpha particle contains two protons .pdf
 
Solutionclass IntNode { int data; public IntNode next,head;.pdf
Solutionclass IntNode { int data; public IntNode next,head;.pdfSolutionclass IntNode { int data; public IntNode next,head;.pdf
Solutionclass IntNode { int data; public IntNode next,head;.pdf
 
Answer is I, II, and V (5) .pdf
                     Answer is I, II, and V (5)                       .pdf                     Answer is I, II, and V (5)                       .pdf
Answer is I, II, and V (5) .pdf
 
Medical importance of bacteriaEcological importance of bacteria.pdf
Medical importance of bacteriaEcological importance of bacteria.pdfMedical importance of bacteriaEcological importance of bacteria.pdf
Medical importance of bacteriaEcological importance of bacteria.pdf
 
import turtleimport timeimport randomdef draw_rectangle(length.pdf
import turtleimport timeimport randomdef draw_rectangle(length.pdfimport turtleimport timeimport randomdef draw_rectangle(length.pdf
import turtleimport timeimport randomdef draw_rectangle(length.pdf
 
Effects of NaCl Concentration on Red Blood Cell Volume A red blo.pdf
Effects of NaCl Concentration on Red Blood Cell Volume A red blo.pdfEffects of NaCl Concentration on Red Blood Cell Volume A red blo.pdf
Effects of NaCl Concentration on Red Blood Cell Volume A red blo.pdf
 
C) 0.3275SolutionC) 0.3275.pdf
C) 0.3275SolutionC) 0.3275.pdfC) 0.3275SolutionC) 0.3275.pdf
C) 0.3275SolutionC) 0.3275.pdf
 
ass smokeSolutionass smoke.pdf
ass smokeSolutionass smoke.pdfass smokeSolutionass smoke.pdf
ass smokeSolutionass smoke.pdf
 
Answer-Possible types of audit for this project1. Financial au.pdf
Answer-Possible types of audit for this project1. Financial au.pdfAnswer-Possible types of audit for this project1. Financial au.pdf
Answer-Possible types of audit for this project1. Financial au.pdf
 
4 1 2 3 Solution 4 1 2 3.pdf
                     4 1 2 3  Solution                     4 1 2 3.pdf                     4 1 2 3  Solution                     4 1 2 3.pdf
4 1 2 3 Solution 4 1 2 3.pdf
 
Ans to Q4.Colloid is a particular state of matter.A colloidal sy.pdf
Ans to Q4.Colloid is a particular state of matter.A colloidal sy.pdfAns to Q4.Colloid is a particular state of matter.A colloidal sy.pdf
Ans to Q4.Colloid is a particular state of matter.A colloidal sy.pdf
 
Answer B and D.Both CTRL-Z and end break out of configuration mod.pdf
Answer B and D.Both CTRL-Z and end break out of configuration mod.pdfAnswer B and D.Both CTRL-Z and end break out of configuration mod.pdf
Answer B and D.Both CTRL-Z and end break out of configuration mod.pdf
 
Amphipathic means that the molecule has a polar, hydrophillic end an.pdf
Amphipathic means that the molecule has a polar, hydrophillic end an.pdfAmphipathic means that the molecule has a polar, hydrophillic end an.pdf
Amphipathic means that the molecule has a polar, hydrophillic end an.pdf
 
Moran Enterprises Inc. (All values in $) Multi Step Income Sta.pdf
    Moran Enterprises Inc.  (All values in $)    Multi Step Income Sta.pdf    Moran Enterprises Inc.  (All values in $)    Multi Step Income Sta.pdf
Moran Enterprises Inc. (All values in $) Multi Step Income Sta.pdf
 

Recently uploaded

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 

1.If we want to add a new Crow class,first of all we have to observe.pdf

  • 1. 1.If we want to add a new Crow class,first of all we have to observe what is the type of Crow class.Crow is a type of Bird.As is having the features of the Bird we have to make the Crow class as a subclass to Bird class. 2.Actually we kept the bodyTemperature variable in Reptile class.But we know every living thing has a body temperature.So we have to use that variable in the super class or parent class of all the classes. So we have to put that bodyTemperature varuable in the animal class(This is the super class of all te classes here).So that all animals will have bodytemperature.Means the subclasses of the Animal class like Reptile class and Bird class will have body temperature. If we use bodyTemperature in Reptile class.We can use it only in the Reptile class and its subclasses.We can use it the Bird Class and its sub classes. 3)If we want to make an Ostrich class as a subclass to Bird class,and also if we want to disable the fly() method of Bird class in Ostrich class we have to override the fly() method in the Ostrich class and we dont have to provide any implementation for that overridden fly() method .So that if we call the fly() method in Ostrich it will not do anything or we can write UnsupportedOperationException. class Ostrich extends Bird { @Override fly() { } } _______________( OR )___________________ class Ostrich extends Bird { @Override fly() { UnsupportedOperationException(); } } _________________________________________ Solution
  • 2. 1.If we want to add a new Crow class,first of all we have to observe what is the type of Crow class.Crow is a type of Bird.As is having the features of the Bird we have to make the Crow class as a subclass to Bird class. 2.Actually we kept the bodyTemperature variable in Reptile class.But we know every living thing has a body temperature.So we have to use that variable in the super class or parent class of all the classes. So we have to put that bodyTemperature varuable in the animal class(This is the super class of all te classes here).So that all animals will have bodytemperature.Means the subclasses of the Animal class like Reptile class and Bird class will have body temperature. If we use bodyTemperature in Reptile class.We can use it only in the Reptile class and its subclasses.We can use it the Bird Class and its sub classes. 3)If we want to make an Ostrich class as a subclass to Bird class,and also if we want to disable the fly() method of Bird class in Ostrich class we have to override the fly() method in the Ostrich class and we dont have to provide any implementation for that overridden fly() method .So that if we call the fly() method in Ostrich it will not do anything or we can write UnsupportedOperationException. class Ostrich extends Bird { @Override fly() { } } _______________( OR )___________________ class Ostrich extends Bird { @Override fly() { UnsupportedOperationException(); } } _________________________________________