[JAVA][래퍼클래스] the space coding wrapper class 자바는 기본형(primitive type), 참조형(reference type) 으로 나누어 집니다.. 그래서 오늘은 참조형(reference type) wrapper class에 대하여 정리를 해볼까 한다. 기본형 래퍼클래스 생정자 boolean Boolean Boolean(boolean value) Boolean(String s) char Character Character(char value) byte Byte Byte(byte value) Byte(String s) short Short Short(short value) Short(String s) int Integer Integer(int value) Integer(String s) long.. JAVA 7년 전
[C++]깊은 대입연산자함수 the space coding [C++]깊은 대입연산자함수 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 #include using namespace std; class A { int *p; public: A() { p=new int; *p=0; } ~A(){ delete p; } A(const A &aa) { p=new int; *p = *aa.p; } A& operator=(const A &aa) { if(this == &aa) return *t.. C++ 7년 전
[c++] public / protected / private the space coding ◈ public / protected / private 접근 지정자 범위 예시! 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 .. C++ 7년 전