티스토리 뷰
Class and Object in C++
- Data and functions are created in class and an object is created through a class.
- How to declare an object is almost the same way which we declare normal variables.
- Class members are private by default.
- To allocate memory, a name should be given as an instance
Example code
'C++' 카테고리의 다른 글
| Encapsulation (getters and setters) in C++ (0) | 2018.11.06 |
|---|---|
| Reference in C++ (0) | 2018.11.06 |
| Dynamic Allocation in C++ (0) | 2018.11.03 |
| Function Overloading in C++ with example code (0) | 2018.11.03 |
| Call by reference & Call by value with example code (0) | 2018.11.03 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- equals()
- 프로그래머스 알고리즘
- math.max
- string class in java
- Collection Framework
- hackerrank
- 프로그래머스 알고리즘문제
- substring()
- easy javascript algorithm
- spring boot application
- ... in Javascript
- 알고리즘
- Object type casting
- hackerrank solution
- compareTo()
- javascript
- math.abs
- easy algorithm
- hackerrank javascript
- repeat()
- 프로그래머스
- C++
- algorithm
- java
- hackerrank javascript solution
- HashMap
- Javascript Algorithm
- code refactoring
- rest parameter
- HackerRank Algorithm
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
글 보관함