Dart Inheritance Demo. Object Oriented Dart. Dart for Flutter Tutorial #9.3

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

Flutter Dart Tutorial. Explore what is Inheritance, why we need them and how to implement it in Dart. Furthermore, explore what is SUPER class, PARENT class, SUB class, BASE class and CHILD class. In the end, explore types of supported inheritance in Dart such as Single inheritance, Multi-level Inheritance and Hierarchical Inheritance.

.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)

Free Programming courses:

Free Flutter course:

Free Android courses:

More free programming courses:

Check out my website:

Let's get in touch! [Sriyank Siddhartha]

---- Thank you for your love and support ----
Рекомендации по теме
Комментарии
Автор

love yaaa, this is amazing. Thank you!!

martaanna
Автор

Will you please cover the topic of Mixins as well. That would be great if you could do that

palakgandhi
Автор

need to go
Is it completed Dart...??..Plz.. Upload more u going to start flutter....??

JK
Автор

in case, we would to get many another classes are inherited from Dog class, what should be the next?
thank you! :)

fclinuxnova
Автор

your typing is like shooting a machine gun lol Your great!

Retro_Mere
Автор

Hello, thank you so much for these tutorials !!

i followed everything as you instructed & im using intelliJ IDE to run DART codes . & i types exactly everything u typed in this inheritence video, i even copied your codes from git hub, but im getting these following errors :

C:\src\dart-sdk\bin\dart.exe --enable-asserts --pause_isolates_on_start --enable-vm-service:2310

bin/main.dart:3:7: Error: Can't declare 'dog' because it was already used in this scope.
var dog = dog();
^^^
bin/main.dart:3:13: Context: Previous use of 'dog'.
var dog = dog();
^^^
bin/main.dart:4:11: Error: Setter not found: 'bread'.
dog.bread = "Labrador";

bin/main.dart:5:11: Error: Setter not found: 'colour'.
dog.colour = "Brown";

bin/main.dart:6:11: Error: Method not found: 'dog.bark'.
dog.bark();
^^^^
bin/main.dart:7:11: Error: Method not found: 'dog.eat'.
dog.eat();
^^^
bin/main.dart:9:8: Error: Can't declare 'cat' because it was already used in this scope.
var cat = cat();
^^^
bin/main.dart:9:14: Context: Previous use of 'cat'.
var cat = cat();
^^^
bin/main.dart:10:12: Error: Setter not found: 'age'.
cat.age = 7;
^^^
bin/main.dart:11:12: Error: Setter not found: 'colour'.
cat.colour = "Black & White";



please let me know as soon as possible !!
Thank you.

likhithswaroop
Автор

Make a course with new versions of dart it doesn’t work well

SMHTEAM