|
1237 | 1237 | | 2 | [What are the pros and cons of Golang?](#what-are-the-pros-and-cons-of-golang)|
|
1238 | 1238 | | 3 | [What kind of projects are suitable to be built in Golang?](#what-kind-of-projects-are-suitable-to-be-built-in-golang)
|
1239 | 1239 | | 4 | [Is Golang an object oriented language?](#is-golang-an-object-oriented-language)
|
| 1240 | +| 5 | [What are the data types in Golang?](#what-are-the-data-types-in-golang) |
1240 | 1241 |
|
1241 | 1242 |
|
1242 | 1243 |
|
|
1281 | 1282 |
|
1282 | 1283 | 4. ### Is Golang an object oriented language?
|
1283 | 1284 |
|
1284 | | - Golang has types and methods and allows an object-oriented style of programming, there is no type hierarchy.Golang has some properties of object oriented programming like Encapsulation , Composition , but it doesn't have inheritance , classes , function overloading . |
| 1285 | + Golang has types and methods and allows an object-oriented style of programming, there is no type hierarchy.Golang has some properties of object oriented programming like Encapsulation , Composition , but it doesn't have inheritance , classes , function overloading . |
| 1286 | + |
| 1287 | + |
| 1288 | + **[ Back to Top ⬆ ](#table-of-contents---golang)** |
| 1289 | + |
| 1290 | +5. ### What are the data types in Golang? |
| 1291 | + |
| 1292 | + 1. **Basic type**: Numbers, strings, and booleans . |
| 1293 | + 2. **Aggregate type**: Array and structs . |
| 1294 | + 3. **Reference type**: Pointers, slices, maps, functions, and channels . |
| 1295 | + 4. **Interface type** |
| 1296 | + |
| 1297 | + |
| 1298 | + **[ Back to Top ⬆ ](#table-of-contents---golang)** |
0 commit comments