mirror of https://github.com/01-edu/public.git
style: prettier
This commit is contained in:
parent
4a13182ce9
commit
4d7ce71190
|
@ -11,6 +11,7 @@ Attributes:
|
|||
- `radius`: `double`
|
||||
|
||||
Getters:
|
||||
|
||||
- `area`
|
||||
- `perimeter`
|
||||
- `rightMostCoordinate`: (x axis)
|
||||
|
@ -19,6 +20,7 @@ Getters:
|
|||
- `lowestCoordinate`: (y axis)
|
||||
|
||||
Constructor:
|
||||
|
||||
- `x`: `required`
|
||||
- `y`: `required`
|
||||
- `radius`: `required`
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
### Instructions
|
||||
|
||||
Write a function named `namedRequiredSum`, that returns the sum of its required [named](https://dart.dev/guides/language/language-tour) `int` parameters:
|
||||
|
||||
- `first`
|
||||
- `second`
|
||||
- `third`
|
||||
|
|
|
@ -23,6 +23,7 @@ Constructor:
|
|||
### Object Oriented Programming
|
||||
|
||||
Dart supports object oriented programming, and it features heavily in Flutter. Classes have 2 main concepts.
|
||||
|
||||
- Attributes: store data about the instance of a class.
|
||||
- Methods: are func functions, which can use class attributes for various manipulations.
|
||||
|
||||
|
|
|
@ -11,12 +11,13 @@ Attributes:
|
|||
- `secretKey`: private `string`. Defaults to "01".
|
||||
|
||||
Constructor:
|
||||
- `name`: `string`
|
||||
- `cityOfOrigin`: `string`
|
||||
- `age`: `int`
|
||||
- `height`: `int`
|
||||
- `batch`: `int`
|
||||
- `level`: `int`
|
||||
|
||||
- `name`: `string`
|
||||
- `cityOfOrigin`: `string`
|
||||
- `age`: `int`
|
||||
- `height`: `int`
|
||||
- `batch`: `int`
|
||||
- `level`: `int`
|
||||
|
||||
### Inheritance
|
||||
|
||||
|
|
|
@ -11,11 +11,13 @@ Attributes:
|
|||
- `ranking`: `private int?`
|
||||
|
||||
Getters:
|
||||
|
||||
- `name`
|
||||
- `city`
|
||||
- `ranking`
|
||||
|
||||
Constructor:
|
||||
|
||||
- `name`: `required`
|
||||
- `city`: `required`
|
||||
- `ranking`: `optional`
|
||||
|
|
|
@ -13,6 +13,7 @@ String strSpongebob = 'Spongebob';
|
|||
```
|
||||
|
||||
Declare and initialize the following variables:
|
||||
|
||||
- `obj` of type `Object`, containing any value.
|
||||
- `planet` of type `String`, containing the name of the planet you live on.
|
||||
- `year` of type `int`, containing the current year.
|
||||
|
|
Loading…
Reference in New Issue