Skip to content

Commit ca48420

Browse files
CopilotM-F-Tushar
andcommitted
Unify document structure with consistent header hierarchy
Co-authored-by: M-F-Tushar <171763969+M-F-Tushar@users.noreply.github.com>
1 parent d848ea3 commit ca48420

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

Cheat sheet/Readme.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Complete OOP Concepts Reference Guide
22

3+
## Table of Contents
4+
5+
1. [Fundamental Structure and Lifetime](#fundamental-structure-and-lifetime)
6+
2. [Access Control and Inheritance](#access-control-and-inheritance)
7+
3. [Polymorphism and Virtual Functions](#polymorphism-and-virtual-functions)
8+
4. [Friends and Operators](#friends-and-operators)
9+
5. [Memory and Pointers](#memory-and-pointers)
10+
6. [Special Functions and Modifiers](#special-functions-and-modifiers)
11+
7. [C++ and Java Advanced Concepts](#c-and-java-advanced-concepts)
12+
8. [Exception Handling](#exception-handling)
13+
9. [Interfaces and Abstract Classes](#interfaces-and-abstract-classes)
14+
10. [Relationships and Design](#relationships-and-design)
15+
11. [Object Methods and Utilities](#object-methods-and-utilities)
16+
12. [Advanced Features](#advanced-features)
17+
318
---
419

520
## Fundamental Structure and Lifetime
@@ -3998,7 +4013,7 @@ class Child extends Parent {
39984013
**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.
39994014

40004015
---
4001-
# C++ and Java Advanced Concepts
4016+
## C++ and Java Advanced Concepts
40024017

40034018
### 1. Run-Time Type Identification (RTTI)
40044019

@@ -5559,9 +5574,7 @@ public class Main {
55595574

55605575
**Differences:** C++ containers define `value_type` typedef for element type. Java uses the generic type parameter directly (no separate typedef). Both achieve type safety but with different mechanisms.
55615576

5562-
# Object-Oriented Programming Concepts Guide
5563-
5564-
## Exception Handling
5577+
## Object-Oriented Programming Concepts Guide
55655578

55665579
### Exception Handling
55675580

@@ -5876,7 +5889,7 @@ public class CustomException extends Throwable {
58765889

58775890
---
58785891

5879-
## Interfaces and Abstract Classes
5892+
### Interfaces and Abstract Classes
58805893

58815894
### Interface
58825895

@@ -6219,7 +6232,7 @@ class Car extends Vehicle {
62196232

62206233
---
62216234

6222-
## Relationships and Design
6235+
### Relationships and Design
62236236

62246237
### Encapsulation
62256238

@@ -6753,9 +6766,9 @@ This comprehensive guide covers essential OOP concepts including exception handl
67536766
- Relationships (association, aggregation, composition) model real-world interactions between objects
67546767
- Both C++ and Java support core OOP concepts with syntax and semantic variations
67556768

6756-
# Object-Oriented Programming Concepts Reference
6769+
## Object-Oriented Programming Concepts Reference
67576770

6758-
## Object Methods and Utilities
6771+
### Object Methods and Utilities
67596772

67606773
### equals Method
67616774

@@ -7124,7 +7137,7 @@ int sum = a + b; // both autounboxed for addition
71247137

71257138
---
71267139

7127-
## Advanced Features
7140+
### Advanced Features
71287141

71297142
### Inner Class
71307143

0 commit comments

Comments
 (0)