0% 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.

Uploaded by

lokesh mara
Copyright
© © All Rights Reserved
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% 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.

Uploaded by

lokesh mara
Copyright
© © All Rights Reserved
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
You are on page 1/ 3

TS:ADV JAVA : SKILL:1

Submitted by : Mara.Lokesh naganka sri prabhu surya sai.

ID:2000031385

SEC : 4 B

DATE : 06-08-21.

Problem: EFFECTIVE e-commerce (basic OOPs 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

Screen shots:

1.PRODUCT class

2.Led tv class

3.Mobile class
OUTPUT:

You might also like