// Code derived from Stroustrup's PPP2 book// § 9.3 Interface and implementation// -and beginning on p 306classX{// this class’s name is Xpublic:// public members:// – the interface to users (accessible by all)// functions// types// data (often best kept private)private:// private members:// – the implementation details (used by members of this class only)// functions// types// data};intmain(){// this C++ attribute prevents an 'unused variable' error by compiler[[maybe_unused]]// this local instantiation of X uses it's implicit default constructor.Xx{};}