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

Side by Side Diff: src/site/_includes/docs/getting-started/_class.html

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 unified diff | Download patch
« no previous file with comments | « src/site/_config.yml ('k') | src/site/_includes/docs/getting-started/_interface.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <section> 1 <section>
2 <p> 2 <p>
3 If you already know a class-based language, 3 If you already know a class-based language,
4 the syntax for creating and using classes probably looks familiar. 4 the syntax for creating and using classes probably looks familiar.
5 If not, 5 If not,
6 you might want to read up on 6 you might want to read up on
7 <a target="_blank" 7 <a target="_blank"
8 href="http://www.google.com/url?sa=D&q=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCl ass_(computer_programming)">classes</a>. 8 href="http://www.google.com/url?sa=D&q=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCl ass_(computer_programming)">classes</a>.
9 </p> 9 </p>
10 10
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 greet(<b>String</b> name) { 205 greet(<b>String</b> name) {
206 print('$prefix $name'); 206 print('$prefix $name');
207 } 207 }
208 } 208 }
209 209
210 <b>void</b> main() { 210 <b>void</b> main() {
211 <b>Greeter</b> greeter = new Greeter(); 211 <b>Greeter</b> greeter = new Greeter();
212 greeter.greet('types'); 212 greeter.greet('types');
213 } </pre> 213 } </pre>
214 214
215 <aside class="note"> 215 <aside>
216 <strong>Note:</strong> 216 <div class="alert alert-info">
217 You might have expected to see a <code>public</code> keyword 217 <strong>Tip:</strong>
218 in the preceding code, 218 You might have expected to see a <code>public</code> keyword
219 but there's no such thing in Dart. 219 in the preceding code,
220 Every type in Dart is public unless its name 220 but there's no such thing in Dart.
221 starts with an underscore ("_"). 221 Every type in Dart is public unless its name
222 For example, <code>Greeter</code> is public, 222 starts with an underscore ("_").
223 but <code>_Greeter</code> would be private. 223 For example, <code>Greeter</code> is public,
224 but <code>_Greeter</code> would be private.
225 </div>
224 </aside> 226 </aside>
225 </dd> 227 </dd>
226 </dl> 228 </dl>
227 229
228 </section> 230 </section>
229 </div> 231 </div>
230 232
OLDNEW
« no previous file with comments | « src/site/_config.yml ('k') | src/site/_includes/docs/getting-started/_interface.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698