Hello
I have to write a program for confectionary.
And i have to write with Inheritance and polymorphism.
this is topic that i have to write :
classes of : 1)sweet 2)Biscuits 3) ice cream => should extend from PastryItem Class.
and also about cost, the system should calculate.
for example for sweet, if we choose 1500(gr) then the system should know that the the price of each kilo is : 10,000$ the the price of buy will be 15000$ .
can you help me ?