Inheritance vs Interfaces in C#: Object Oriented Programming

IAmTimCorey September 13, 2021
Video Thumbnail
IAmTimCorey Logo

IAmTimCorey

@iamtimcorey

About

My goal is to make your life easier, specifically when it comes to learning software development. I remember what it was like to not know even what questions to ask. In every video I do, I try to answer those questions. You will notice that I don't usually do quick videos. That's because I would rather help you understand rather than just padding my watch percentages. If you want more in-depth training, feel free to head over to my website (https://www.iamtimcorey.com) where I have courses dedicated to C#, SQL, and more.

Video Description

Inheritance is a big part of object-oriented programming, as are interfaces. However, the two can often get confused. Knowing when to use inheritance and when to use an interface is important. In this lesson, we are going to talk through when to use inheritance and when to use an interface instead. Then we will look at an example to illustrate these principles by first getting it wrong and then following the best practices to use both interfaces and inheritance each in the best possible manner. Full Training Courses: https://IAmTimCorey.com Source Code: https://www.iamtimcorey.com/downloads/?code=IvsI Mailing List: https://signup.iamtimcorey.com/

Transform Your Space Today

AI-recommended products based on this video

Loading...
LEGO Icons Bonsai Tree Building Set - Artificial Bonsai Tree Plants for Home Decor, Adults Ages 18+ - Faux, Fake Plants for Table, Desk, Office - Birthday Gift for Men & Women - 10281

LEGO Icons Bonsai Tree Building Set - Artificial Bonsai Tree Plants for Home Decor, Adults Ages 18+ - Faux, Fake Plants for Table, Desk, Office - Birthday Gift for Men & Women - 10281

(22,441)
$59.99
PrimeFREE delivery Sat, Jun 14
600+ bought in past month
Loading...
RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

(190)
$36.09
Prime
2K+ bought in past month
Loading...
Teppdfann Gold Leaf Stud Earrings Medium Leaf Drop Dangle Earrings for Women Hypoallergenic Plant Earrings for Vacation Leaf Jewelry for Gift

Teppdfann Gold Leaf Stud Earrings Medium Leaf Drop Dangle Earrings for Women Hypoallergenic Plant Earrings for Vacation Leaf Jewelry for Gift

(2)
$19.99
FREE delivery Sun, Jul 6 on your first order
Loading...
Teppdfann Gold Long Leaf Stud Earrings Hypoallergenic Leaf Dangling Earrings for Women Plant Earrings for Gift

Teppdfann Gold Long Leaf Stud Earrings Hypoallergenic Leaf Dangling Earrings for Women Plant Earrings for Gift

(16)
$18.99
FREE delivery Wed, Jul 16 on your first order
Loading...
Teppdfann Teardrop Earrings for Women, 14K Gold Plated Leaf Earrings, Handmade Filigree Dangle Earrings for Women Trendy

Teppdfann Teardrop Earrings for Women, 14K Gold Plated Leaf Earrings, Handmade Filigree Dangle Earrings for Women Trendy

(48)
$14.99
Loading...
AIPPK 18K Gold Plated Clover Lucky Bracelet for Women White/Black/Red/Green Flower Four Leaf Link Bracelets Trendy Jewelry Gifts for Women

AIPPK 18K Gold Plated Clover Lucky Bracelet for Women White/Black/Red/Green Flower Four Leaf Link Bracelets Trendy Jewelry Gifts for Women

(549)
$9.60
FREE delivery Jun 26 - Jul 14
Loading...
Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

(23,669)
$10.38
FREE delivery Mon, Sep 15 on your first order
5K+ bought in past month
Loading...
FineCheer FineCheer 30 Pcs Graduation Party Decoration Graduation Cap Photo Banner Grad Cap Garland Photo Display Decor Black Gold Class of 2026 Wooden Clip String Kits for Congrats Grad Hanging Picture Decor

FineCheer FineCheer 30 Pcs Graduation Party Decoration Graduation Cap Photo Banner Grad Cap Garland Photo Display Decor Black Gold Class of 2026 Wooden Clip String Kits for Congrats Grad Hanging Picture Decor

(2)
$59.09
FREE delivery Feb 18 - 19
Loading...
Water Marbling Paint for Kids - Arts and Crafts for Girls & Boys Crafts Kits Ideal Gifts for Kids Age 6-8 8-12

Water Marbling Paint for Kids - Arts and Crafts for Girls & Boys Crafts Kits Ideal Gifts for Kids Age 6-8 8-12

(7,777)
$19.99$19.09
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
Cordless Paint Sprayer for Dewalt 20V MAX Battery.Paint Spray Gun with Powerful Motor and 4 Copper Nozzle.650w Electric HVIP Sprayer for House Painting,Furniture, Wall, Door.(NOT Battery)

Cordless Paint Sprayer for Dewalt 20V MAX Battery.Paint Spray Gun with Powerful Motor and 4 Copper Nozzle.650w Electric HVIP Sprayer for House Painting,Furniture, Wall, Door.(NOT Battery)

(5)
$74.99
FREE delivery Wed, Aug 20
50+ bought in past month
Loading...
Small Standing Desk Adjustable Height, Mobile Stand Up Desk with Wheels, 32 Inch Portable Rolling Desks for Walking Pad Treadmill Wood Rustic

Small Standing Desk Adjustable Height, Mobile Stand Up Desk with Wheels, 32 Inch Portable Rolling Desks for Walking Pad Treadmill Wood Rustic

(1,020)
$92.99
FREE delivery Mon, Feb 16
Loading...
King Size Bed Frame, 14'' Metal Platform with Rustic Wood, 2000 lbs Capacity, Metal Bed Frame No Box Spring Needed with Ample Storage Space - Easy Assembly and Noise Free

King Size Bed Frame, 14'' Metal Platform with Rustic Wood, 2000 lbs Capacity, Metal Bed Frame No Box Spring Needed with Ample Storage Space - Easy Assembly and Noise Free

(135)
$135.97
FREE delivery Fri, Jun 27
100+ bought in past month
Loading...
Queen Bed Frame 14'' Metal Platform with Rustic Wood, 2000 lbs Capacity, Metal Bed Frame No Box Spring Needed with Ample Storage Space - Easy Assembly and Noise Free

Queen Bed Frame 14'' Metal Platform with Rustic Wood, 2000 lbs Capacity, Metal Bed Frame No Box Spring Needed with Ample Storage Space - Easy Assembly and Noise Free

(124)
$125.97
FREE delivery Tue, Jun 17
100+ bought in past month
Loading...
IBF Wood Large Computer Desk, 70.8” Long Home Office Desk for Two Person, Farmhouse Work Study Writing Table in Bedroom, Simple Wide Metal Executive Double PC Gaming Workstation, Rustic Oak

IBF Wood Large Computer Desk, 70.8” Long Home Office Desk for Two Person, Farmhouse Work Study Writing Table in Bedroom, Simple Wide Metal Executive Double PC Gaming Workstation, Rustic Oak

(88)
$319.91
FREE delivery Thu, Jun 26