请教一道c++设计题。英文的。
2.DesignaclassnamedStackOfInteger.Thestackisadatastructurethatholdsdatainalast-in.first-out.ItholdstheIntegerdata.TheUML(UnifiedModelingLanguage)diagramfortheclassisshowninthefollowingfigure.