Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Object-Oriented Programming Object Initialization

Ahmed M
Ahmed M
4,008 Points

this video is made for 30 year old people can you help me understand this video pls

pls can you watch this video

2 Answers

Steven Parker
Steven Parker
231,198 Points

What part of the lesson makes you think it was intended for a certain age audience? And what age are you suggesting the target should be?

Steven Parker
Steven Parker
231,198 Points

OK, but what is it about the video that makes it seem like it's only intended for older people?

And more importantly, what concepts do you need help with?

Ahmed M
Ahmed M
4,008 Points

The way its they explain

Steven Parker
Steven Parker
231,198 Points

I'm still not sure what you're referring to. But anyway, how can we help?

Ahmed M
Ahmed M
4,008 Points

Please don't take this offensive I'm 15 and I can't understand because the way they explain is a little bit difficult Constructors, arguments, Fields, Parameters, etc.

Steven Parker
Steven Parker
231,198 Points

It might not be an age issue. People of all ages who begin learning programming often find those concepts challenging to comprehend.

You might enjoy this episode of The Treehouse Show that covers learning challenges and solutions. There's also a bonus video series on How to Learn.

And if you have any specific technical questions we might help with, ask them here.

Ahmed M
Ahmed M
4,008 Points

thank you did That helped

but I still don't get what does c# constructor do so I am going to watch a Java video about constructors because Java is similar to c#

Steven Parker
Steven Parker
231,198 Points

There are similarities in the languages, but many differences also. It's possible that the other language training might cause more confusion than it resolves.

I would recommend other sources of online C# information over courses for other languages.

Ahmed M
Ahmed M
4,008 Points

Do you know Any courses on c# constructor

Steven Parker
Steven Parker
231,198 Points

Not a "course", but a quick search turned up a chapter on constructors in the Microsoft Programming Guide, and article on CodeProject, and some examples on Dot Net Pearls.

Ahmed M
Ahmed M
4,008 Points

thank you i will read it

Steven Parker
Steven Parker
231,198 Points

Now I get what you meant in your other question, you want a short definition of a constructor, right?

:point_right: A constructor is a function that sets up the initial state of a new object when it is created using a class.

Ahmed M
Ahmed M
4,008 Points

ok thank you i know this

why do i do this In the body of the constructor "Width = width; Height = height;" This is my only question

public Map(int width, int height) { Width = width; Height = height; }