Posts

Showing posts with the label array of objects in cpp

Array Of Objects In C++ | Array Of Objects Explained With Real Life Example

 Array Of Objects In C++ What is an array of objects? As you know about the array that it is a set of anything like if there is an array of characters then there will be a set of characters. So the same concepts will be applied to objects - A array of objects will be a set of objects. To understand array of objects more clearly suppose you have a form for a job application and you want to send same job application to 100 people. Then rather then creating 100 job application from scratch you can photocopy the same job application form 100 times.Right? So here how you can create array of object in c++ -  #include   < iostream > using   namespace   std ; class   School {      public :        int   std_id ;      int   std_class ;      float   percentage ;      void   add_details ()      {     ...