C
C#8mo ago
fry

✅ Confusing wording, seeking clarification, NOT homework help

Hello (again for those that remember) ive got this assignment, but yet again I have no idea what they want. not looking for answers, just clarification The question seems simple at first. A class must be made for a student, and a class for main Student class has first and last name, and three grades In main, we enter 3 grades. Then we make two objects based off that Student class where
one object will pass user information via constructor. and another object will be initialized using default constructor and pass user information via properties
What the hell does that quoted bit mean?? Why should Main make two objects of that student class? Is there something Im missing? And as far as I know, [https://learn.microsoft.com/en-us/dotnet/csharp/properties] tells me this
property definition contains declarations for a get and set accessor that retrieves and assigns the value of that property
Please help.. im so lost (I havent been reading my C# textbook, but it just sucks to read cause of eye strain, so I resort to looking online + videos lol)
12 Replies
fry
fry8mo ago
I can send an image of the question if I didnt explain it well
Angius
Angius8mo ago
var objectOne = new Foo(1, "hello");
var objectTwo = new Foo();
objectTwo.Num = 69;
objectTwo.Str = "bye";
var objectOne = new Foo(1, "hello");
var objectTwo = new Foo();
objectTwo.Num = 69;
objectTwo.Str = "bye";
That's what it means, I believe One object initialized with the data via a constructor, the other initialized with a default ctor and filled with data later
fry
fry8mo ago
I see, that makes sense now that you say it but why would we need two objects when we're only dealing with one student?
Angius
Angius8mo ago
¯\_(ツ)_/¯
fry
fry8mo ago
wait wait let me just send this image
fry
fry8mo ago
No description
fry
fry8mo ago
ignore everything that isnt relevant, I already have a program typed up but then I read down and I just died maybe this'll help clear things up
Angius
Angius8mo ago
No description
Angius
Angius8mo ago
So, yeah studentOne and studentTwo
fry
fry8mo ago
oh wow\ I had trouble readingt cause of the angle so they want us to enter two students This is what happens when your eyes are strained from doing a lot of stuff Thank u bro I feel dumb af LMAO
Angius
Angius8mo ago
Happens to the best of us lol
fry
fry8mo ago
yeahh closing it now !