Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overloading 1.0 #37

Closed
chetannihith opened this issue Oct 17, 2023 · 1 comment
Closed

Overloading 1.0 #37

chetannihith opened this issue Oct 17, 2023 · 1 comment

Comments

@chetannihith
Copy link
Owner

  • Create a class 'Student' with three data members which are roll, name, marks and address. The constructor of the class assigns default values roll as "not assigned", name as "unknown", marks as '0' and address as "not available". It has three methods with the same name 'getData'. First method has two parameters for name and roll and assigns the same whereas the second method has four parameters which are assigned to name, roll, marks and address respectively. Defined another method to print the student details. create three objects and print the details of these student Objects.

  • Implement the above program using Constructor Overloading.

@bhairavibhuyar
Copy link
Contributor

Hello, I would like to work on this issue. Can you please assign it to me?

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

No branches or pull requests

2 participants