8000 added content · JavaK2/JavaNotes@04802ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 04802ea

Browse files
author
Ram swaroop
committed
added content
1 parent b1a6d1f commit 04802ea

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

_posts/2015-08-20-nested-classes.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,11 @@ associated instance of the enclosing class. If you're in a `static` method, ther
277277
## Anonymous Inner Classes
278278

279279
Inner class declared without any class name at all is known as __Anonymous Inner Class__. These can be seen as two types:
280-
1. Plain/Normal Anonymous Inner Class
281-
2. Argument defined Anonymous Inner Class
282280

283-
1. Plain/Normal Anonymous Inner Class also comes in two flavors:
281+
**I. Plain/Normal Anonymous Inner Class**
282+
**II. Argument Defined Anonymous Inner Class**
283+
284+
**I. Plain/Normal Anonymous Inner Class also comes in two flavors:**
284285

285286
a. Flavor 1:
286287

@@ -299,8 +300,8 @@ class Food {
299300
}
300301
{% endhighlight %}
301302

302-
In the above code, the Popcorn reference variable __DOES NOT__ refer to an instance of Popcorn, but to an instance of an
303-
anonymous (unnamed) subclass of Popcorn.
303+
In the above code, the `Popcorn` reference variable __DOES NOT__ refer to an instance of `Popcorn`, but to an instance of an
304+
anonymous (unnamed) subclass of `Popcorn`.
304305

305306
306307

0 commit comments

Comments
 (0)
0