Dart Class, Objects, Instance and reference Variable example. Dart Tutorial for Flutter #8.1

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

Object-Oriented Programming in Dart. Learn about how to use Class, create objects, define constructors and what are the reference and Instance variables in Dart with demo code.

.
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 ----
Рекомендации по теме
Комментарии
Автор

You are a very good teacher. God bless you. When i become a professional full stack app developer and i start working, i promise to find you

osteenx
Автор

To the people, who are learning from this tutorial after 5 years, dart has changed its features now it provide null safety that means int and string does not hold null value now, non nullable datatype to make them null by type casting use - int? nullableNumber;
String? nullableText; or use late keyword in front of it for example - late int x ;

aviraltara
Автор

Best ever, I thought i knew all the basics until I watched this play list.

Winnerever
Автор

thanks for "Dart Tutorial for Beginners: Basics and Fundamentals" .

muhammadsaqib
Автор

You have created a much helpful Dart tutorial playlist. Thank you for your efforts.

harit
Автор

I really don't know how to thank you for your great effort, thank you very much 👍🏻

abdulazizdeveloper
Автор

I am very thankful for this playlist. Thank you

MassimoTodaro
Автор

Very well done sir. Straight to the point and clear. Thanks!

mrMayhem
Автор

@Smartherd thank you for this amazing course . it cleared out my basics of programming in a really smooth and understandable way. <3 from India.

kashyapkarkar
Автор

you have an excellent job. appreciate you man. Perfect!

PrimaClicks
Автор

In 8m 07sec
Thanks for Mentioning Default Value

karthickrajalearn
Автор

You are such a Amazing tutor
Thanks a lot

kavinthapa
Автор

you are my Guru Shiriank Sir :) i've learned a lot from you regarding Android Studio and now i'm learning flutter as well! i really appreciate your work!
Respect and your Student from Pakistan!

razasheikh
Автор

Hi, i'd like do an ask:

Why we know the values from an instance by the . instead the [], What type of var is a instance of a class?

ricardoaraque
Автор

Hi Sir, How can you say that a variable is assigned with a class name or method name if while instantiating you are skipping the new keyword ?

AR-okqt
Автор

hello sir your tutorial is really helping
but why i got error in this code
It should throw exception
void main()
{
var s1= Student();

try{
s1.age="20";
}catch(e) { print(e); }

print("${s1.name} is ${s1.age} year old");
s1.sleep();
s1.study();
}
class Student
{
String name = "Peter";
int age = 23;
void sleep()
{
print("${this.name} is sleeping.");
}
void study()
{
print("${this.name} is studying.");
}
}

SignumCode
Автор

sir how can i learn advance dart tutorial. everywhere i am getting basic dart. please help. BTW great tutorial i understood many basic concept.

pranavyogeshbaradkar
Автор

we can write in that way without using *this keyword=>
void main(){
var s1=S();
s1.id=115;s1.name='animesh';
print('${s1.id} and ${s1.name}');
s1.read();
s1.sleep();
}
class S{
int id;
String name;
void read(){
print('$name is reading');
}
void sleep(){
print('$id is sleeping');
}
}
The code is working so why we need *this keyword here .
Please help me out ...I stuck here in oop concepts:-/

animeshbanerjee
Автор

If you give some exercise at the end of each video it will be more useful Thanks.

haribabumanoharan
Автор

"this " usage is still a little confusing

zakblacki