Object-oriented Programming (OOP) [Pt 18] | C# for Beginners

preview_player
Показать описание

In this video, David and Scott explain how to model the world with Object Oriented Programming. Let's create person and pet objects, and declare what those people/pets will look like. Along the way, learn best practices on how to create your object.

Links:

#dotnet #csharp
Рекомендации по теме
Комментарии
Автор

Trust me this is the only video where i didnt need to go back again to understand, best way of teaching, thank you!!

Sir_Primus_
Автор

Easier way to understand OOP than what I was taught.

DBYT
Автор

Glad i came to know about the primary constructors.tks

ShreyanshiTimes
Автор

What would be the NEXT best playlist to watch after finishing "C# for Beginners"? I definitely learned a lot from those two awesome instructors.

Ricebow
Автор

What’s the difference between
public string First { get; } = firstname;
public string First => firstname;
public string First { get => firstname; }
I know the result might be the same but I can’t see the difference 😢

jjj-kemp
Автор

How to implement this primary constructor in a derived class if its base class has a constructor parameters? I tried this code but it doesn't work:

public class Animal(string name, int age)
{
public string Name { get; } = name;
public int Age { get; } = age;
}

public class Dog(string name, int age, string breed) : base(name, age)
{
public string Breed { get; } = breed;
}

Edit (this is now the new way):
public class Animal(string name, int age)
{
public string Name { get; } = name;
public int Age { get; } = age;
}

public class Dog(string name, int age, string breed) : Animal(name, age)
{
public string Breed { get; } = breed;
}

thanks this is great!

bryanpaderes
Автор

Primary Constructors with polymorphism is yucky...

carlosromero-snnm
Автор

Putting some timestamps in this/the replies of this comment for myself, sorry if that's annoying!! /gen

MightyMoleee
Автор

Looks like copy of the Kotlin language syntax.
🙂
Java + Kotlin = C#

maneshwam
welcome to shbcf.ru