Skip to content

[CODE]:Constructor and Destructor: Student Record System #158

Description

@patil-rushikesh

Problem Description:
Create a Student Record System where you maintain a list of students with attributes such as name, age, and grades. Use constructors and destructors to manage resources effectively.

Location:
https://github.com/patil-rushikesh/cpp_programs/tree/main/Examples

Attributes:

Student class:
name (string) – Name of the student.
age (int) – Age of the student.
grades (float[]) – Array of grades for different subjects.

Methods:
Constructor – Initializes the student attributes.
Destructor – Handles cleanup (if necessary).

The program should be menu-driven, allowing the user to:

  1. Add a new student record.
  2. Display student details.
  3. Delete a student record (using a destructor).
  4. Exit the program.

Requirements for the Issue:

  1. Implement the Student class with a constructor and destructor.
  2. Handle the dynamic memory allocation (if necessary) in the constructor.
  3. Use the destructor for cleanup when a student record is deleted.
  4. Provide a menu-driven interface to manage student records.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions