SlideShare a Scribd company logo
1 of 1
Download to read offline
You are required to implement all the classes as specified by UML diagram below.The objective
of most of the methods is obvious from the given method name and input parameters.I am listing
below the explanation of the not-so-obvious methods.
PlayList Class:
getSong(pos:int) :Song
a method that returns the song that is located in the given position (pos). If there is no song in the
given position then the method returns null
getSongPosition(title:String):int
a method that takes the song title as input and returns as output the position of the song in the
list. If not found, the method returns -1. Song -title:String -artist: String +Song (title:String,
artist:String) +gettitle ():String +getArtist ):String +tostring ) :String PlayList
maxNumOfSongs:int -currentNumor Songs: int; +PlayList (maxNumOESongs:int)
+getcurrentNumSongs ) :int +addsong (title:String, artist:String) :void +addsong
(song:Song):void +getsong (pos:int) :Song +getsongPosition (title:String) :int User nam String -
favoriteSongs: PlayList +User (name: String, favoriteSongs: PlayList) +User (name: String)
+setFavoriteSongs (1ist: PlayList) :void +getFavoriteSongs) PlayList; +getsong (title:String)
:Song +addsong (title:String, artist:String) :void tartistsongCount (artist:String) :int +tostring ()
:String
Solution
Please find the implementation of all the classes mentioned in the above UML diagram. Please
see comment against each line to get to know the explanation :

More Related Content

More from arorasales234

Our best evidence to data suggests that the Earth formed 4.6 billion .pdf
Our best evidence to data suggests that the Earth formed 4.6 billion .pdfOur best evidence to data suggests that the Earth formed 4.6 billion .pdf
Our best evidence to data suggests that the Earth formed 4.6 billion .pdfarorasales234
 
one human resource manager recently got a thank you note on her iPho.pdf
one human resource manager recently got a thank you note on her iPho.pdfone human resource manager recently got a thank you note on her iPho.pdf
one human resource manager recently got a thank you note on her iPho.pdfarorasales234
 
Mutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdf
Mutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdfMutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdf
Mutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdfarorasales234
 
Money laundering has become a mechanism for financing terrorist acti.pdf
Money laundering has become a mechanism for financing terrorist acti.pdfMoney laundering has become a mechanism for financing terrorist acti.pdf
Money laundering has become a mechanism for financing terrorist acti.pdfarorasales234
 
Let X and Y be continuous r.v. with joint density functionPlease g.pdf
Let X and Y be continuous r.v. with joint density functionPlease g.pdfLet X and Y be continuous r.v. with joint density functionPlease g.pdf
Let X and Y be continuous r.v. with joint density functionPlease g.pdfarorasales234
 
Independent auditors must provide dual opinions. What are these two .pdf
Independent auditors must provide dual opinions. What are these two .pdfIndependent auditors must provide dual opinions. What are these two .pdf
Independent auditors must provide dual opinions. What are these two .pdfarorasales234
 
Imperialism and Nationalism are often incongruous concepts that exis.pdf
Imperialism and Nationalism are often incongruous concepts that exis.pdfImperialism and Nationalism are often incongruous concepts that exis.pdf
Imperialism and Nationalism are often incongruous concepts that exis.pdfarorasales234
 
Imagine that you plant the massive seed from inside an avocado. You p.pdf
Imagine that you plant the massive seed from inside an avocado. You p.pdfImagine that you plant the massive seed from inside an avocado. You p.pdf
Imagine that you plant the massive seed from inside an avocado. You p.pdfarorasales234
 
Identify three traits each that distinguish channels from carriers. .pdf
Identify three traits each that distinguish channels from carriers. .pdfIdentify three traits each that distinguish channels from carriers. .pdf
Identify three traits each that distinguish channels from carriers. .pdfarorasales234
 
i am trying to get this library file income.js using this, to be loa.pdf
i am trying to get this library file income.js using this, to be loa.pdfi am trying to get this library file income.js using this, to be loa.pdf
i am trying to get this library file income.js using this, to be loa.pdfarorasales234
 
Explain why it can be problematic to base morality and ethics only o.pdf
Explain why it can be problematic to base morality and ethics only o.pdfExplain why it can be problematic to base morality and ethics only o.pdf
Explain why it can be problematic to base morality and ethics only o.pdfarorasales234
 
Discuss the reasons why the Human Microbiome Project is a step forwa.pdf
Discuss the reasons why the Human Microbiome Project is a step forwa.pdfDiscuss the reasons why the Human Microbiome Project is a step forwa.pdf
Discuss the reasons why the Human Microbiome Project is a step forwa.pdfarorasales234
 
Describe what is happening in Italy (or you may substitute Argentina.pdf
Describe what is happening in Italy (or you may substitute Argentina.pdfDescribe what is happening in Italy (or you may substitute Argentina.pdf
Describe what is happening in Italy (or you may substitute Argentina.pdfarorasales234
 
Consider an extension of the queue abstract data type, called a .pdf
Consider an extension of the queue abstract data type, called a .pdfConsider an extension of the queue abstract data type, called a .pdf
Consider an extension of the queue abstract data type, called a .pdfarorasales234
 
Cordia Corporation is planning a 15 year project with an initial inv.pdf
Cordia Corporation is planning a 15 year project with an initial inv.pdfCordia Corporation is planning a 15 year project with an initial inv.pdf
Cordia Corporation is planning a 15 year project with an initial inv.pdfarorasales234
 
Case study on Queensland Health Payroll Debacle & Queensland Governm.pdf
Case study on Queensland Health Payroll Debacle & Queensland Governm.pdfCase study on Queensland Health Payroll Debacle & Queensland Governm.pdf
Case study on Queensland Health Payroll Debacle & Queensland Governm.pdfarorasales234
 
Can you give an example of a binary heap programCan you give an .pdf
Can you give an example of a binary heap programCan you give an .pdfCan you give an example of a binary heap programCan you give an .pdf
Can you give an example of a binary heap programCan you give an .pdfarorasales234
 
All businesses, small or large, depend on data centers. Answer the f.pdf
All businesses, small or large, depend on data centers. Answer the f.pdfAll businesses, small or large, depend on data centers. Answer the f.pdf
All businesses, small or large, depend on data centers. Answer the f.pdfarorasales234
 
A) The linearity condition is not satisfied. B) The linearity cond.pdf
A) The linearity condition is not satisfied. B) The linearity cond.pdfA) The linearity condition is not satisfied. B) The linearity cond.pdf
A) The linearity condition is not satisfied. B) The linearity cond.pdfarorasales234
 
4. Records of the missions of Baja California in the form of baptism.pdf
4. Records of the missions of Baja California in the form of baptism.pdf4. Records of the missions of Baja California in the form of baptism.pdf
4. Records of the missions of Baja California in the form of baptism.pdfarorasales234
 

More from arorasales234 (20)

Our best evidence to data suggests that the Earth formed 4.6 billion .pdf
Our best evidence to data suggests that the Earth formed 4.6 billion .pdfOur best evidence to data suggests that the Earth formed 4.6 billion .pdf
Our best evidence to data suggests that the Earth formed 4.6 billion .pdf
 
one human resource manager recently got a thank you note on her iPho.pdf
one human resource manager recently got a thank you note on her iPho.pdfone human resource manager recently got a thank you note on her iPho.pdf
one human resource manager recently got a thank you note on her iPho.pdf
 
Mutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdf
Mutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdfMutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdf
Mutations rII1 and rII2 are known to fall into the rIIA and rIIB cis.pdf
 
Money laundering has become a mechanism for financing terrorist acti.pdf
Money laundering has become a mechanism for financing terrorist acti.pdfMoney laundering has become a mechanism for financing terrorist acti.pdf
Money laundering has become a mechanism for financing terrorist acti.pdf
 
Let X and Y be continuous r.v. with joint density functionPlease g.pdf
Let X and Y be continuous r.v. with joint density functionPlease g.pdfLet X and Y be continuous r.v. with joint density functionPlease g.pdf
Let X and Y be continuous r.v. with joint density functionPlease g.pdf
 
Independent auditors must provide dual opinions. What are these two .pdf
Independent auditors must provide dual opinions. What are these two .pdfIndependent auditors must provide dual opinions. What are these two .pdf
Independent auditors must provide dual opinions. What are these two .pdf
 
Imperialism and Nationalism are often incongruous concepts that exis.pdf
Imperialism and Nationalism are often incongruous concepts that exis.pdfImperialism and Nationalism are often incongruous concepts that exis.pdf
Imperialism and Nationalism are often incongruous concepts that exis.pdf
 
Imagine that you plant the massive seed from inside an avocado. You p.pdf
Imagine that you plant the massive seed from inside an avocado. You p.pdfImagine that you plant the massive seed from inside an avocado. You p.pdf
Imagine that you plant the massive seed from inside an avocado. You p.pdf
 
Identify three traits each that distinguish channels from carriers. .pdf
Identify three traits each that distinguish channels from carriers. .pdfIdentify three traits each that distinguish channels from carriers. .pdf
Identify three traits each that distinguish channels from carriers. .pdf
 
i am trying to get this library file income.js using this, to be loa.pdf
i am trying to get this library file income.js using this, to be loa.pdfi am trying to get this library file income.js using this, to be loa.pdf
i am trying to get this library file income.js using this, to be loa.pdf
 
Explain why it can be problematic to base morality and ethics only o.pdf
Explain why it can be problematic to base morality and ethics only o.pdfExplain why it can be problematic to base morality and ethics only o.pdf
Explain why it can be problematic to base morality and ethics only o.pdf
 
Discuss the reasons why the Human Microbiome Project is a step forwa.pdf
Discuss the reasons why the Human Microbiome Project is a step forwa.pdfDiscuss the reasons why the Human Microbiome Project is a step forwa.pdf
Discuss the reasons why the Human Microbiome Project is a step forwa.pdf
 
Describe what is happening in Italy (or you may substitute Argentina.pdf
Describe what is happening in Italy (or you may substitute Argentina.pdfDescribe what is happening in Italy (or you may substitute Argentina.pdf
Describe what is happening in Italy (or you may substitute Argentina.pdf
 
Consider an extension of the queue abstract data type, called a .pdf
Consider an extension of the queue abstract data type, called a .pdfConsider an extension of the queue abstract data type, called a .pdf
Consider an extension of the queue abstract data type, called a .pdf
 
Cordia Corporation is planning a 15 year project with an initial inv.pdf
Cordia Corporation is planning a 15 year project with an initial inv.pdfCordia Corporation is planning a 15 year project with an initial inv.pdf
Cordia Corporation is planning a 15 year project with an initial inv.pdf
 
Case study on Queensland Health Payroll Debacle & Queensland Governm.pdf
Case study on Queensland Health Payroll Debacle & Queensland Governm.pdfCase study on Queensland Health Payroll Debacle & Queensland Governm.pdf
Case study on Queensland Health Payroll Debacle & Queensland Governm.pdf
 
Can you give an example of a binary heap programCan you give an .pdf
Can you give an example of a binary heap programCan you give an .pdfCan you give an example of a binary heap programCan you give an .pdf
Can you give an example of a binary heap programCan you give an .pdf
 
All businesses, small or large, depend on data centers. Answer the f.pdf
All businesses, small or large, depend on data centers. Answer the f.pdfAll businesses, small or large, depend on data centers. Answer the f.pdf
All businesses, small or large, depend on data centers. Answer the f.pdf
 
A) The linearity condition is not satisfied. B) The linearity cond.pdf
A) The linearity condition is not satisfied. B) The linearity cond.pdfA) The linearity condition is not satisfied. B) The linearity cond.pdf
A) The linearity condition is not satisfied. B) The linearity cond.pdf
 
4. Records of the missions of Baja California in the form of baptism.pdf
4. Records of the missions of Baja California in the form of baptism.pdf4. Records of the missions of Baja California in the form of baptism.pdf
4. Records of the missions of Baja California in the form of baptism.pdf
 

Recently uploaded

FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
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
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
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
 
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
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
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
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfcupulin
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
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
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 

Recently uploaded (20)

Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
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
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
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
 
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...
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
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...
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
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
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 

You are required to implement all the classes as specified by UML di.pdf

  • 1. You are required to implement all the classes as specified by UML diagram below.The objective of most of the methods is obvious from the given method name and input parameters.I am listing below the explanation of the not-so-obvious methods. PlayList Class: getSong(pos:int) :Song a method that returns the song that is located in the given position (pos). If there is no song in the given position then the method returns null getSongPosition(title:String):int a method that takes the song title as input and returns as output the position of the song in the list. If not found, the method returns -1. Song -title:String -artist: String +Song (title:String, artist:String) +gettitle ():String +getArtist ):String +tostring ) :String PlayList maxNumOfSongs:int -currentNumor Songs: int; +PlayList (maxNumOESongs:int) +getcurrentNumSongs ) :int +addsong (title:String, artist:String) :void +addsong (song:Song):void +getsong (pos:int) :Song +getsongPosition (title:String) :int User nam String - favoriteSongs: PlayList +User (name: String, favoriteSongs: PlayList) +User (name: String) +setFavoriteSongs (1ist: PlayList) :void +getFavoriteSongs) PlayList; +getsong (title:String) :Song +addsong (title:String, artist:String) :void tartistsongCount (artist:String) :int +tostring () :String Solution Please find the implementation of all the classes mentioned in the above UML diagram. Please see comment against each line to get to know the explanation :