Dart Tutorial #28 - Dart Objects & Cascade operator in Dart Programming

Veröffentlicht am: 04 Mai 2022
auf dem Kanal: Programming For Beginners
546
18

Dart Tutorial #28 - Dart Objects & Cascade operator in Dart Programming
In this video by Programming for Beginners we will see Dart Objects & Cascade operator in Dart Programming, using Dart Tutorial videos. We can learn Dart Programming language to make web applications or mobile applications using flutter framework. Also we can make single-page web applications using Dart programming.
Object-Oriented Programming defines an object as “any entity that has a defined boundary.” An object has the following −

State − Describes the object. The fields of a class represent the object’s state.
Behavior − Describes what an object can do.
Identity − A unique value that distinguishes an object from a set of similar other objects. Two or more objects can share the state and behavior but not the identity.

The period operator (.) is used in conjunction with the object to access a class’ data members.

Example:
class Student {
void test_method() {
print("This is a test method");
}

void test_method1() {
print("This is a test method1");
}
}
void main() {
Student s1 = new Student();
s1.test_method();
s1.test_method1();
}


The Cascade operator (..)
The cascade operator can be used as a shorthand in cases where there is a sequence of invocations.

Example:
class Student {
void test_method() {
print("This is a test method");
}

void test_method1() {
print("This is a test method1");
}
}
void main() {
new Student()
..test_method()
..test_method1();
}

Dart Tutorial Playlist:
   • Dart Tutorial  

VS Code Editor:
https://code.visualstudio.com/download
Online Dartpad:
https://dartpad.dartlang.org/
Dart SDK:
https://www.dartlang.org/install/arch...

YouTube Gears:
Microphone: https://amzn.to/3iIk5K3
Mouse: https://amzn.to/35irmNF
Laptop: https://amzn.to/3iG0jyD

#Dart #Tutorial #Programming

============================
LIKE | SHARE | COMMENT | SUBSCRIBE

Thanks for watching :)


Auf dieser Seite können Sie das Online-Video Dart Tutorial #28 - Dart Objects & Cascade operator in Dart Programming mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Programming For Beginners 04 Mai 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 546 Mal angesehen und es wurde von 18 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!