Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ALL Create a class namely Mobiles with the following properties and methods. Class: Mobiles It should contain one property called mobiles with - 2 type
ALL Create a class namely Mobiles with the following properties and methods.
Class: Mobiles
It should contain one property called mobiles with
type as interface Mobile as an array.
It should contain four methods namely getMobiles, addinQueue, filteritems and deliveritem.
The function getMobiles should have the id parameter. If the id is null return the mobiles array else returns the specific data in the array which matches the id
The function addinQueue should have the item parameter to push the data in the mobiles array.
The function filteritems should have the status parameter. It should fetch the array of data which matches the status.
The function deliveritem should have two parameters id and amount. It should find the data that matches the id and update the amount property with the value passed in the parameter and the status property as "resolved".
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started