(a) Define a supplier class. Assume that the items supplied by any given supplier are different and varying in number. Use dynamic memory allocation in the constructor function to achieve the solution.
Explanation
The Supplier class uses dynamic memory allocation in its constructor to store the quantity of items supplied. The destructor is used to deallocate the memory when the object is destroyed.
โฌ Related Topic
๐ Syllabus
View KERALA UNIVERSITY Class 4 Syllabus โ
๐ Practice Questions
Practice Previous Year Questions โ
๐ค Practice with AI
Generate Practice Question Paper โ
๐ Related Concepts
- (a) Explain the principle and working of (i) Zener diode (ii) LED
- (a) (i) Compare sequential and combinational logic circuits. (ii) With the help of truth table, explain JK flip flop
- (a) With neat circuit diagram and wave forms, Explain the working of a full wave rectifier.
- (a) Draw the block diagram of function generator and explain its working.
- (a) Draw the block diagram of super heterodyne receiver and explain its working.