hey friends i am working with a program of "stack of stack".....and i thought to work it out using inheritance....but i m stuck in it...
i thought to inherit both the stack - the parent stack and a stack element....from a single base class..
i mean i am in dilemma of how to use inheritance...the basic functions of a stack wud be...push, pop, view, isempty...etc.
for push d functions wud differ as push(stack) in parent stack and push(int) in mini stack....
same for oders...
so any suggestions...?? or shud i drop dis idea??? :|
bhoot_jb 47 Junior Poster in Training
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
bhoot_jb 47 Junior Poster in Training
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
bhoot_jb 47 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.