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.

Please read this site's terms of use. We don't do your homework for you. Make an honest effort, then show your code and errors/problems you are getting and then we can help.

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.