Skip to content

Commit d848ea3

Browse files
CopilotM-F-Tushar
andcommitted
Fix inconsistent header hierarchy in Advanced Concepts section
Co-authored-by: M-F-Tushar <171763969+M-F-Tushar@users.noreply.github.com>
1 parent 254b9fd commit d848ea3

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

Cheat sheet/Readme.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3998,9 +3998,9 @@ class Child extends Parent {
39983998
**C++ vs Java Difference:** C++ static_cast is compile-time only, no runtime checks. Java casting includes runtime type checking. C++ has multiple cast operators; Java has one cast syntax with automatic checking. Java is safer; C++ offers more control.
39993999

40004000
---
4001-
# C++ and Java Advance Concept
4001+
# C++ and Java Advanced Concepts
40024002

4003-
## 1. Run-Time Type Identification (RTTI)
4003+
### 1. Run-Time Type Identification (RTTI)
40044004

40054005
**Definition:** A mechanism that allows the type of an object to be determined during program execution.
40064006

@@ -4039,7 +4039,7 @@ public class Main {
40394039

40404040
---
40414041

4042-
## 2. typeid Operator
4042+
### 2. typeid Operator
40434043

40444044
**Definition:** A C++ operator that returns type information about an expression.
40454045

@@ -4077,7 +4077,7 @@ public class Main {
40774077

40784078
---
40794079

4080-
## 3. dynamic_cast
4080+
### 3. dynamic_cast
40814081

40824082
**Definition:** A C++ casting operator that performs safe downcasting with runtime type checking.
40834083

@@ -4122,7 +4122,7 @@ public class Main {
41224122

41234123
---
41244124

4125-
## 4. const_cast
4125+
### 4. const_cast
41264126

41274127
**Definition:** A C++ casting operator that adds or removes const or volatile qualifiers.
41284128

@@ -4163,7 +4163,7 @@ public class Main {
41634163

41644164
---
41654165

4166-
## 5. static_cast
4166+
### 5. static_cast
41674167

41684168
**Definition:** A C++ casting operator that performs compile-time type conversions.
41694169

@@ -4198,7 +4198,7 @@ public class Main {
41984198

41994199
---
42004200

4201-
## 6. reinterpret_cast
4201+
### 6. reinterpret_cast
42024202

42034203
**Definition:** A C++ casting operator that performs low-level reinterpretation of bit patterns.
42044204

@@ -4239,7 +4239,7 @@ public class Main {
42394239

42404240
---
42414241

4242-
## 7. Upcasting (Implicit)
4242+
### 7. Upcasting (Implicit)
42434243

42444244
**Definition:** Converting a derived class reference/pointer to a base class reference/pointer.
42454245

@@ -4279,7 +4279,7 @@ public class Main {
42794279

42804280
---
42814281

4282-
## 8. Downcasting (Explicit)
4282+
### 8. Downcasting (Explicit)
42834283

42844284
**Definition:** Converting a base class reference/pointer to a derived class reference/pointer.
42854285

@@ -4321,7 +4321,7 @@ public class Main {
43214321

43224322
---
43234323

4324-
## 9. instanceof Operator
4324+
### 9. instanceof Operator
43254325

43264326
**Definition:** A Java operator that tests whether an object is an instance of a specific class or interface.
43274327

@@ -4365,7 +4365,7 @@ public class Main {
43654365

43664366
---
43674367

4368-
## 10. type_info Object
4368+
### 10. type_info Object
43694369

43704370
**Definition:** A C++ class that holds implementation-specific information about a type.
43714371

@@ -4407,7 +4407,7 @@ public class Main {
44074407

44084408
---
44094409

4410-
## 11. Templates and Generics
4410+
### 11. Templates and Generics
44114411

44124412
**Definition:** Mechanisms for writing code that works with any data type without sacrificing type safety.
44134413

@@ -4448,7 +4448,7 @@ public class Main {
44484448

44494449
---
44504450

4451-
## 12. Generic Function (Template)
4451+
### 12. Generic Function (Template)
44524452

44534453
**Definition:** A function that can operate on different data types specified as parameters.
44544454

@@ -4495,7 +4495,7 @@ public class Main {
44954495

44964496
---
44974497

4498-
## 13. Generic Class (Template Class)
4498+
### 13. Generic Class (Template Class)
44994499

45004500
**Definition:** A class that can work with any data type specified as a type parameter.
45014501

@@ -4551,7 +4551,7 @@ public class Main {
45514551

45524552
---
45534553

4554-
## 14. Namespace
4554+
### 14. Namespace
45554555

45564556
**Definition:** A declarative region that provides scope to identifiers to prevent name conflicts.
45574557

@@ -4593,7 +4593,7 @@ class MathUtils {
45934593

45944594
---
45954595

4596-
## 15. using Statement
4596+
### 15. using Statement
45974597

45984598
**Definition:** A C++ statement that introduces names from a namespace into the current scope.
45994599

@@ -4627,7 +4627,7 @@ public class Main {
46274627

46284628
---
46294629

4630-
## 16. Formal Generic Type
4630+
### 16. Formal Generic Type
46314631

46324632
**Definition:** The type parameter declared in a generic class or method definition.
46334633

@@ -4681,7 +4681,7 @@ public class Main {
46814681

46824682
---
46834683

4684-
## 17. Wildcard Generic Type
4684+
### 17. Wildcard Generic Type
46854685

46864686
**Definition:** A special generic type parameter in Java that represents an unknown type.
46874687

@@ -4736,7 +4736,7 @@ public class Main {
47364736

47374737
---
47384738

4739-
## 18. Template Instantiation
4739+
### 18. Template Instantiation
47404740

47414741
**Definition:** The process of generating concrete code from a template by substituting type parameters with actual types.
47424742

@@ -4789,7 +4789,7 @@ public class Main {
47894789

47904790
---
47914791

4792-
## 19. Standard Template Library (STL)
4792+
### 19. Standard Template Library (STL)
47934793

47944794
**Definition:** A C++ library providing generic container classes, algorithms, and iterators.
47954795

@@ -4832,7 +4832,7 @@ public class Main {
48324832

48334833
---
48344834

4835-
## 20. STL Containers
4835+
### 20. STL Containers
48364836

48374837
**Definition:** Template classes in STL that store collections of objects.
48384838

@@ -4875,7 +4875,7 @@ public class Main {
48754875

48764876
---
48774877

4878-
## 21. Algorithms
4878+
### 21. Algorithms
48794879

48804880
**Definition:** Template functions in STL that perform operations on containers.
48814881

@@ -4923,7 +4923,7 @@ public class Main {
49234923

49244924
---
49254925

4926-
## 22. Iterators
4926+
### 22. Iterators
49274927

49284928
**Definition:** Objects that allow traversal through container elements.
49294929

@@ -4967,7 +4967,7 @@ public class Main {
49674967

49684968
---
49694969

4970-
## 23. vector
4970+
### 23. vector
49714971

49724972
**Definition:** A dynamic array container that can grow or shrink in size.
49734973

@@ -5012,7 +5012,7 @@ public class Main {
50125012

50135013
---
50145014

5015-
## 24. list
5015+
### 24. list
50165016

50175017
**Definition:** A doubly-linked list container.
50185018

@@ -5059,7 +5059,7 @@ public class Main {
50595059

50605060
---
50615061

5062-
## 25. queue
5062+
### 25. queue
50635063

50645064
**Definition:** A FIFO (First-In-First-Out) container adapter.
50655065

@@ -5106,7 +5106,7 @@ public class Main {
51065106

51075107
---
51085108

5109-
## 26. stack
5109+
### 26. stack
51105110

51115111
**Definition:** A LIFO (Last-In-First-Out) container adapter.
51125112

@@ -5153,7 +5153,7 @@ public class Main {
51535153

51545154
---
51555155

5156-
## 27. map
5156+
### 27. map
51575157

51585158
**Definition:** An associative container that stores key-value pairs with unique keys.
51595159

@@ -5196,7 +5196,7 @@ public class Main {
51965196

51975197
---
51985198

5199-
## 28. Random-access Iterator
5199+
### 28. Random-access Iterator
52005200

52015201
**Definition:** An iterator that provides random access to elements with constant time complexity.
52025202

@@ -5240,7 +5240,7 @@ public class Main {
52405240

52415241
---
52425242

5243-
## 29. Bidirectional Iterator
5243+
### 29. Bidirectional Iterator
52445244

52455245
**Definition:** An iterator that can move both forward and backward through elements.
52465246

@@ -5283,7 +5283,7 @@ public class Main {
52835283

52845284
---
52855285

5286-
## 30. Forward Iterator
5286+
### 30. Forward Iterator
52875287

52885288
**Definition:** An iterator that can only move forward through elements.
52895289

@@ -5326,7 +5326,7 @@ public class Main {
53265326

53275327
---
53285328

5329-
## 31. Input Iterator
5329+
### 31. Input Iterator
53305330

53315331
**Definition:** An iterator that can read elements sequentially in a single pass.
53325332

@@ -5374,7 +5374,7 @@ public class Main {
53745374

53755375
---
53765376

5377-
## 32. Output Iterator
5377+
### 32. Output Iterator
53785378

53795379
**Definition:** An iterator that can write elements sequentially in a single pass.
53805380

@@ -5421,7 +5421,7 @@ public class Main {
54215421

54225422
---
54235423

5424-
## 33. size_type
5424+
### 33. size_type
54255425

54265426
**Definition:** An unsigned integer type representing the size of a container.
54275427

@@ -5469,7 +5469,7 @@ public class Main {
54695469

54705470
---
54715471

5472-
## 34. iterator Type
5472+
### 34. iterator Type
54735473

54745474
**Definition:** A typedef representing the iterator type for a container.
54755475

@@ -5514,7 +5514,7 @@ public class Main {
55145514

55155515
---
55165516

5517-
## 35. value_type
5517+
### 35. value_type
55185518

55195519
**Definition:** A typedef representing the type of elements stored in a container.
55205520

0 commit comments

Comments
 (0)