Skip to content

Commit d20489b

Browse files
committed
Fixes Bugs.
Signed-off-by: Someshdiwan <[email protected]>
1 parent 9a4fca6 commit d20489b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

site/Explaination.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ c = 1111 1110
246246
- x \| 0 = x
247247
- x \| 1 = 1
248248
- x \| x = x
249+
249250
---
251+
250252
- Swapping two values without a temporary variable
251253

252254
```
@@ -272,9 +274,13 @@ c = 1111 1110
272274
a = a ^ b;
273275
- Explanation: Finally, (a = (a oplus b) oplus a) simplifies to (b) (as (a oplus a = 0)).
274276
So, (a) becomes the original (b) (5).
275-
---
277+
278+
```
279+
276280
<sup><sub>[▲ TOP](#table-of-contents)</sub></sup>
277281

282+
---
283+
278284
## Exceptions
279285

280286
Three types:
@@ -336,7 +342,9 @@ Object o = d;
336342
All four of these references refer to the same Deer object on the heap.
337343

338344
---
345+
339346
### Static Polymorphism
347+
340348
*Static Polymorphism* is polymorphism that is resolved at compile time.
341349
Method *overloading* is an example of static polymorphism.
342350

@@ -362,8 +370,9 @@ And, in fact, the compiler does just this -- it resolves which method will be ca
362370
rather than waiting until runtime.
363371
364372
### Dynamic Polymorphism
365-
*Dynamic Polymorphism* is polymorphism that is resolved at runtime.
366-
Method *overriding* is an example of dynamic polymorphism.
373+
374+
Dynamic Polymorphism is polymorphism that is resolved at runtime.
375+
Method overriding is an example of dynamic polymorphism.
367376
368377
For example, consider the following code:
369378

0 commit comments

Comments
 (0)