Define a Class, STUDENT and define certain data members and functions in this class having Private data members Name, Class, Gender, D.O.B. Create functions to access these private data members. (get/set methods) Create a function that checks whether the student is male or female and display the gender of student. Create a default constructor for the class and another constructor that sets the values for the given data members.Now declare five objects of class STUDENT in your main(). Put the declared objects in array of type STUDENT and display the details of all students on console.
RiZz_1 0 Newbie Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.