Skip to content

Homework 2#2

Open
prashant1shukla wants to merge 2 commits intomainfrom
Homework-2
Open

Homework 2#2
prashant1shukla wants to merge 2 commits intomainfrom
Homework-2

Conversation

@prashant1shukla
Copy link
Owner

image

prashant1shukla added 2 commits May 10, 2024 04:15
Comment on lines +5 to +6
private string name;
private int age;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should also have _ prefix

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why have you added the homework 1 in the same branch??

@@ -0,0 +1,44 @@
using System;

class Person

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Person class should be in the separate Person.cs file.

Comment on lines +38 to +42
Person person1 = new Person("Prashant", 22);
person1.DisplayInfo();

Person person2 = new Person();
person2.DisplayInfo();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use numeric characters at the end of the variable name..
You can name this variables like.. PersonOne and PersonTwo

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants