Dart Tutorial

Dart Tutorial Single-Page Application Architecture Dart Features Dart Installation Guide Dart Basic Program Dart Syntax Dart Keywords Dart Variables Dart Comments Dart Standard Input Output Dart Important Concepts

Data Types

Built-in Data Types Numbers Strings Booleans Lists Sets Maps Runes and Graphemes Symbols Enumerations Constants Queues

Other data types

Objects Future and stream Iterable Miscellaneous types

OPERATORS

Precedence and associativity Arithmetic operators Equality and Relational operators Type Test Operators Assignment Operators Logical Operators Bitwise and Shift Operators Miscellaneous operators

Control Flow Statements

Introduction If statement If-else statement If-else-if statement Loops Switch and case Dart Break And Continue Assert In Dart

FUNCTIONS

Dart function Types of Functions Anonymous function main( ) function Lexical scope and closure Recursion Common Collection Methods

Object Oriented Concepts

Dart Object-Oriented Concepts Dart Classes Dart Constructors Dart This Keyword Dart Super Keyword Static Members Method Overriding Dart Interfaces Inheritance Dart Abstract Classes Dart Builder Classes Dart Callable Classes

Dart Type System

Dart Type System Dart Soundness Dart Type Inference

MISCELLANEOUS

Dart Isolates Dart Typedef Dart Metadata Dart Packages Dart Generics Dart Generators Dart Concurrency Dart Unit Testing Dart Html Dom Dart URIs Dart Extends, With and Implements Keywords Dart Optional Parameters Rust Vs Dart C++ vs Dart Golang Vs Dart Dart Basics Exception Handling

C++ vs Dart

Difference between C++ and Dart

C++ is an object-oriented programming language developed in 1980 by Bjarne Stroustrup. It has wide real-world applications with various in-built functions and a very vast library with various templates to handle the data structures and functions efficiently.

Dart is a client-optimized language developed by Google in 2011 by Lars Bak and Kasper Lund. It aims at serving applications at the server-side as well as the browser side.

ParametersDartC++
Input & output from the userDart uses print( ) function to display the output and readLineSync( ) function to accept the input from the user.C++ uses stream objects ‘cin’ to accept the input from the user and ‘cout’ to display the output on the screen.
Language TypeDart is a web-based programming language that supports object-oriented features. It is used for reactive programming.C++ is an object-oriented programming.
TranslatorDart code is compiled and the compiler converts the code into the JavaScript Code, which is an interpreted language. It can also be compiled into the native code to use with Node.js.
We can say that the Dart is an interpreted compiler language.
C++ is a compiled language, and the compiler and interpreter convert it into machine-level language.