Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: src/site/_includes/language-tour/interfaces/index.markdown

Issue 10788006: new site (Closed) Base URL: https://code.google.com/p/dartlang-site/@master
Patch Set: final patch Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/_includes/language-tour/interfaces/index.markdown
diff --git a/src/site/_includes/language-tour/interfaces/index.markdown b/src/site/_includes/language-tour/interfaces/index.markdown
index 683975f4d2429b47760afcacd5ae1afdf8b2eea1..c16cfae1b4a77c5c823c5fe67099c27aa6e3a03f 100644
--- a/src/site/_includes/language-tour/interfaces/index.markdown
+++ b/src/site/_includes/language-tour/interfaces/index.markdown
@@ -68,10 +68,12 @@ class Point implements Comparable, Hashable {
}
{% endhighlight %}
-<aside class="note" markdown="1">
- **Note:**
- Soon you'll be able to treat Dart classes as interfaces.
- This feature will be useful when creating mock objects for testing.
+<aside>
+ <div class="alert alert-info">
+ <strong>Tip:</strong>
+ Dart classes have implicit interfaces.
+ This feature is useful when creating mock objects for testing.
+ </div>
</aside>
</section>
@@ -95,13 +97,15 @@ interface HashablePoint extends Hashable {
}
{% endhighlight %}
-<aside class="note" markdown="1">
- **Note:**
- Technically, interfaces don't have instance variables
- such as `x` and `y`.
- What looks like an instance variable is really a
- shortcut for declaring
- [getter and setter methods](#classes-getters-and-setters).
+<aside>
+ <div class="alert alert-info">
+ <strong>Note:</strong>
+ Technically, interfaces don't have instance variables
+ such as `x` and `y`.
+ What looks like an instance variable is really a
+ shortcut for declaring
+ [getter and setter methods](#classes-getters-and-setters).
+ </div>
</aside>
Here's an example of implementing a subinterface
@@ -138,12 +142,14 @@ main() {
An interface can define constructors,
as long as it specifies a _default class_.
-<aside class="note" markdown="1">
- **Note:**
- Many of the Dart APIs are implemented as
- interfaces that have default classes.
- For example, all of the <a href="#built-in-types">built-in types</a>,
- including <a href="#numbers">num and int</a>, are interfaces.
+<aside>
+ <div class="alert alert-info">
+ <strong>Note:</strong>
+ Many of the Dart APIs are implemented as
+ interfaces that have default classes.
+ For example, all of the <a href="#built-in-types">built-in types</a>,
+ including <a href="#numbers">num and int</a>, are interfaces.
+ </div>
</aside>
Use the `default` keyword to specify
« no previous file with comments | « src/site/_includes/language-tour/generics/index.markdown ('k') | src/site/_includes/language-tour/libraries/index.markdown » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698