Question:
Write the definition of a class Photo in C++ with following description:
Private Members
Pno //Data member for Photo Number
(an integer)
Category //Data member for Photo Category
(a string)
Exhibit //Data member for Exhibition Gallery
(a string)
FixExhibit //A member function to assign
//Exhibition Gallery as per Category
//as shown in the following table
Category Exhibit
Antique Zaveri
Modern Johnsen
Classic Terenida
Public Members
Register() //A function to allow user to enter
//values
//Pno,Category and call FixExhibit()
//function
ViewAll() //A function to display all the data
//members
C. Sir| Created: 8-Jan-2019 | Updated: 22-Mar-2026|CBSE12A-2015
