Arjun owns an ecommerce business and his employees asked him to update the website to make it more efficient by reducing the data they have to enter for each product. They currently have to re-enter common details like product ID, name and price for every item. The employees suggested using inheritance so that TVs and mobiles can inherit the common details from a base Product class while also capturing unique attributes like screen size or memory for each type of product.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
34 views3 pages
Ts Adv Java Skill 1
Arjun owns an ecommerce business and his employees asked him to update the website to make it more efficient by reducing the data they have to enter for each product. They currently have to re-enter common details like product ID, name and price for every item. The employees suggested using inheritance so that TVs and mobiles can inherit the common details from a base Product class while also capturing unique attributes like screen size or memory for each type of product.
Arjun who has recently started his ecommerce business, as a young entrepreneur likes to have things so organized. His employees asked him to make an update in his website so that workload on employees is reduced. Employees always have to enter every datatype of the product again and again that are even common to all products like- product id, name, price. So, when employees updates record of Television, we should only get brand, size of that television along with id, name, price. Similarly, when employees update records of Mobile, we should get ram, OS, Internal memory along with id, name, price. Arjun shall make an update with his employees request and make his website more effective to employees by using inheritance concept to reduce their job stress and focus on other issues. Help arjun to update his website with Inheritance logic. Key points to follow: 1.Do not use object reference for product class 2.Three classes should be created (Product, Ledtv, Mobile) with according to the given parameters required
Microsoft Power Platform Up and Running: Learn to Analyze Data, Create Solutions, Automate Processes, and Develop Virtual Agents with Low Code Programming (English Edition)