SlideShare a Scribd company logo
1 of 1
1. Add an interface Resizable to Project in Ex 1 - Has a method resize(double x ) that resizes a
Shape's dimensions by factor x 2. Class Rectangle and circle should implement Resizable
interface and extend Shape class at the same time 3. Write a Main class that contains the main
method to: - Define a Rectangle (color= Yellow, width = 2 , height = 4 ) - Define a Circle
(color= Red, radius = 2.2 ) - Print the values of both objects using ReturnValues() before resizing
- Resize the values by factor of 2 - Re-print the values of both objects using ReturnValues() after
resizing

More Related Content

More from fitzlikv

1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx
1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx
1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx
fitzlikv
 

More from fitzlikv (20)

1- Complete an in-depth analysis of the Railway Labor act including it.docx
1- Complete an in-depth analysis of the Railway Labor act including it.docx1- Complete an in-depth analysis of the Railway Labor act including it.docx
1- Complete an in-depth analysis of the Railway Labor act including it.docx
 
1- Complete the table and indicate the critical path- Name 2- Crash th.docx
1- Complete the table and indicate the critical path- Name 2- Crash th.docx1- Complete the table and indicate the critical path- Name 2- Crash th.docx
1- Complete the table and indicate the critical path- Name 2- Crash th.docx
 
1- Children Example- Let X- number of children with positive genetic t.docx
1- Children Example- Let X- number of children with positive genetic t.docx1- Children Example- Let X- number of children with positive genetic t.docx
1- Children Example- Let X- number of children with positive genetic t.docx
 
1- Cancer cells are characterized by- Increased cell differentiation.docx
1- Cancer cells are characterized by-   Increased cell differentiation.docx1- Cancer cells are characterized by-   Increased cell differentiation.docx
1- Cancer cells are characterized by- Increased cell differentiation.docx
 
1- Business processes DO NOT include A- Flows of material- information.docx
1- Business processes DO NOT include A- Flows of material- information.docx1- Business processes DO NOT include A- Flows of material- information.docx
1- Business processes DO NOT include A- Flows of material- information.docx
 
1- Briefly describe the major challenges faced by the diabetes care de.docx
1- Briefly describe the major challenges faced by the diabetes care de.docx1- Briefly describe the major challenges faced by the diabetes care de.docx
1- Briefly describe the major challenges faced by the diabetes care de.docx
 
1- Assume a pipeline processor with 6 stages- Fetch Instruction (FI)-.docx
1- Assume a pipeline processor with 6 stages- Fetch Instruction (FI)-.docx1- Assume a pipeline processor with 6 stages- Fetch Instruction (FI)-.docx
1- Assume a pipeline processor with 6 stages- Fetch Instruction (FI)-.docx
 
1- At what age did the infant weigh 15 pounds 2- What was the infants.docx
1- At what age did the infant weigh 15 pounds  2- What was the infants.docx1- At what age did the infant weigh 15 pounds  2- What was the infants.docx
1- At what age did the infant weigh 15 pounds 2- What was the infants.docx
 
1- Analyze the types of innovation and the processes followed at Neome.docx
1- Analyze the types of innovation and the processes followed at Neome.docx1- Analyze the types of innovation and the processes followed at Neome.docx
1- Analyze the types of innovation and the processes followed at Neome.docx
 
1- Analyze the types of innovation and the processes followed at Datav.docx
1- Analyze the types of innovation and the processes followed at Datav.docx1- Analyze the types of innovation and the processes followed at Datav.docx
1- Analyze the types of innovation and the processes followed at Datav.docx
 
1- Analyze and describe three network topologies and four network type.docx
1- Analyze and describe three network topologies and four network type.docx1- Analyze and describe three network topologies and four network type.docx
1- Analyze and describe three network topologies and four network type.docx
 
1- An information system A- Collects- processes- stores- and distribut.docx
1- An information system A- Collects- processes- stores- and distribut.docx1- An information system A- Collects- processes- stores- and distribut.docx
1- An information system A- Collects- processes- stores- and distribut.docx
 
1- Abstract 2- Table of contents 3- Introduction- here u provide conte.docx
1- Abstract 2- Table of contents 3- Introduction- here u provide conte.docx1- Abstract 2- Table of contents 3- Introduction- here u provide conte.docx
1- Abstract 2- Table of contents 3- Introduction- here u provide conte.docx
 
1- A survey was conducted to determine how people rated the quality of.docx
1- A survey was conducted to determine how people rated the quality of.docx1- A survey was conducted to determine how people rated the quality of.docx
1- A survey was conducted to determine how people rated the quality of.docx
 
1- A reason for emerging zoonotic diseases is a) lack of vaccine effic.docx
1- A reason for emerging zoonotic diseases is a) lack of vaccine effic.docx1- A reason for emerging zoonotic diseases is a) lack of vaccine effic.docx
1- A reason for emerging zoonotic diseases is a) lack of vaccine effic.docx
 
1- A domestic and global challenge that requires a One Health approach.docx
1- A domestic and global challenge that requires a One Health approach.docx1- A domestic and global challenge that requires a One Health approach.docx
1- A domestic and global challenge that requires a One Health approach.docx
 
1- A densely settled core of Census Tracts with a population of 72-000.docx
1- A densely settled core of Census Tracts with a population of 72-000.docx1- A densely settled core of Census Tracts with a population of 72-000.docx
1- A densely settled core of Census Tracts with a population of 72-000.docx
 
1- - This class calculates a waitperson's tip as 15- of the bill.docx
1- - This class calculates a waitperson's tip as 15- of the bill.docx1- - This class calculates a waitperson's tip as 15- of the bill.docx
1- - This class calculates a waitperson's tip as 15- of the bill.docx
 
1- (Screen Shot) of your Network- be sure your device names contain yo.docx
1- (Screen Shot) of your Network- be sure your device names contain yo.docx1- (Screen Shot) of your Network- be sure your device names contain yo.docx
1- (Screen Shot) of your Network- be sure your device names contain yo.docx
 
1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx
1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx
1- (True or False) A aicroproceswor is the -brains of a computer- 2- (.docx
 

Recently uploaded

IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
17thcssbs2
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 

Recently uploaded (20)

Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
Discover the Dark Web .pdf InfosecTrain
Discover the Dark Web .pdf  InfosecTrainDiscover the Dark Web .pdf  InfosecTrain
Discover the Dark Web .pdf InfosecTrain
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 

1- Add an interface Resizable to Project in Ex 1 - Has a method resize.docx

  • 1. 1. Add an interface Resizable to Project in Ex 1 - Has a method resize(double x ) that resizes a Shape's dimensions by factor x 2. Class Rectangle and circle should implement Resizable interface and extend Shape class at the same time 3. Write a Main class that contains the main method to: - Define a Rectangle (color= Yellow, width = 2 , height = 4 ) - Define a Circle (color= Red, radius = 2.2 ) - Print the values of both objects using ReturnValues() before resizing - Resize the values by factor of 2 - Re-print the values of both objects using ReturnValues() after resizing