Stack Class
What is Stack Class? Difference between Stack and class?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suraj SahooRank #382 · 6.6K reputationPosted Feb 4, 2015, 8:00 PM EST
Are you sure you want difference between Stack and Class or Struct and Class?
Below I have provided a good link for difference between struct and class.
http://www.c-sharpcorner.com/UploadFile/skumaar_mca/difference-between-struct-and-classes/
Stack as you have mentioned is a Data structure concept.
As stack is something in which elements are stacked or inserted following a LIFO(Last In First Out) principle. For example, plates stacked in a hotel or marriages.
Whereas
A class is a OOP principle element. It is simply a template that has its own properties and the properties are accessed by using an instance of it which is called an Object.
Hope this gives you an idea of what you wanted.
Thanks
Pramod Verma186 reputationPosted Feb 5, 2015, 4:09 AM EST
Suraj SahooRank #382 · 6.6K reputationPosted Feb 5, 2015, 7:56 AM EST
Thanks.
Happy to help