SlideShare a Scribd company logo
1 of 38
발표자  -  윤현성
C++ 에서의 구조체 Step 01 Step 02 Step 03 클래스와 객체 객체지향의 이해
연관이 있는 데이터를 묶어서 관리하는 문법적 장치 < 게임상의 자동차 > 자동차에 대한 정보 ▪  소유주 ▪  연료량 ▪  현재 속도 ▪  취득 점수 ▪  취득 아이템
▪  C++  에서는  typedef  를 선언해주지 않아도 무방하다 . ▪  C++  에서는 구조체 안에 함수를 넣을 수 있다 . < C 언어  > < C++ >
 
▪  ShowCarState  함수 , Accel  함수 , Break  함수  -  모두 구조체  Car  와 연관이 있고  Car  의 데이터 들을 처리하는 함수 ▪  문제점 -  전역함수의 형태를 가졌기 때문에  Car  에 대해 비종속적 -  다른 영역에서도 함수 호출 가능
 
▪  ShowCarState  함수 , Accel  함수 , Break  함수  -  구조체  Car  에 대한 종속적인 함수로 나타내어 가독성  Up
함수 변수 run99 함수 변수 sped77
동일한 함수 사용 함수 변수 run99 변수 sped77
 
가독성  Up! 네임스페이스 안에 있는  enum  상수에 접근하는 법
 
선언 부분 구현 부분
-  구조체는 변수의 접근제어 지시자가 기본으로  public -  클래스는 변수의 접근제어 지시자가 기본적으로  private
[  허용 범위  ] public > protected > private
 
클래스 객체
 
멤버 함수 멤버 변수
 
클래스의 선언 -  클래스를 구성하는 외형적인 틀 - 컴파일러가 오류를 잡아내는데  필요한 초소한의 정보
[object Object],[object Object],[object Object],[object Object],[object Object]
 
 
 
 
 
 
 
 
 
 
 
 
 
과일을 구매하는 함수에서 과일을 판매하는 사람의 객체 를 불러와 구매의 기능 표현
 

More Related Content

Viewers also liked

An operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementationAn operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementationMohanadarshan Vivekanandalingam
 
As media studies_evaluation.[1]charlotte
As media studies_evaluation.[1]charlotteAs media studies_evaluation.[1]charlotte
As media studies_evaluation.[1]charlotteCharlotteSnowden
 
Lung Cancer: An Overview & Discussion of Minimally Invasive Surgical Therapy
Lung Cancer: An Overview & Discussion of Minimally Invasive Surgical TherapyLung Cancer: An Overview & Discussion of Minimally Invasive Surgical Therapy
Lung Cancer: An Overview & Discussion of Minimally Invasive Surgical TherapyMills-Peninsula Health Services
 
Chapter8 상속과다형성(윤현성)
Chapter8 상속과다형성(윤현성)Chapter8 상속과다형성(윤현성)
Chapter8 상속과다형성(윤현성)Hyun Sung Yoon
 
New Advances in the Treatment of Liver Tumors: Laparoscopic Resections
New Advances in the Treatment of Liver Tumors: Laparoscopic ResectionsNew Advances in the Treatment of Liver Tumors: Laparoscopic Resections
New Advances in the Treatment of Liver Tumors: Laparoscopic ResectionsMills-Peninsula Health Services
 
Secretos Financieros que tal vez no conoces
Secretos Financieros que tal vez no conocesSecretos Financieros que tal vez no conoces
Secretos Financieros que tal vez no conocesclaudiogib
 

Viewers also liked (9)

An operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementationAn operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementation
 
As media studies_evaluation.[1]charlotte
As media studies_evaluation.[1]charlotteAs media studies_evaluation.[1]charlotte
As media studies_evaluation.[1]charlotte
 
Lung Cancer: An Overview & Discussion of Minimally Invasive Surgical Therapy
Lung Cancer: An Overview & Discussion of Minimally Invasive Surgical TherapyLung Cancer: An Overview & Discussion of Minimally Invasive Surgical Therapy
Lung Cancer: An Overview & Discussion of Minimally Invasive Surgical Therapy
 
Chapter8 상속과다형성(윤현성)
Chapter8 상속과다형성(윤현성)Chapter8 상속과다형성(윤현성)
Chapter8 상속과다형성(윤현성)
 
Diagnosis & Staging of Pancreatic Cancer
Diagnosis & Staging of Pancreatic CancerDiagnosis & Staging of Pancreatic Cancer
Diagnosis & Staging of Pancreatic Cancer
 
New Advances in the Treatment of Liver Tumors: Laparoscopic Resections
New Advances in the Treatment of Liver Tumors: Laparoscopic ResectionsNew Advances in the Treatment of Liver Tumors: Laparoscopic Resections
New Advances in the Treatment of Liver Tumors: Laparoscopic Resections
 
Evolving Trends in Breast MRI
Evolving Trends in Breast MRIEvolving Trends in Breast MRI
Evolving Trends in Breast MRI
 
Pancreatic Cancer
Pancreatic CancerPancreatic Cancer
Pancreatic Cancer
 
Secretos Financieros que tal vez no conoces
Secretos Financieros que tal vez no conocesSecretos Financieros que tal vez no conoces
Secretos Financieros que tal vez no conoces
 

Similar to Chapter3 클래스의기본(윤현성)

제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목
제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목
제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목dgmit2009
 
카사 공개세미나1회 W.E.L.C.
카사 공개세미나1회  W.E.L.C.카사 공개세미나1회  W.E.L.C.
카사 공개세미나1회 W.E.L.C.Ryan Park
 
Working Effectively With Legacy Code - xp2005
Working Effectively With Legacy Code - xp2005Working Effectively With Legacy Code - xp2005
Working Effectively With Legacy Code - xp2005Ryan Park
 
NDC11_김성익_슈퍼클래스
NDC11_김성익_슈퍼클래스NDC11_김성익_슈퍼클래스
NDC11_김성익_슈퍼클래스Sungik Kim
 
About Visual C++ 10
About  Visual C++ 10About  Visual C++ 10
About Visual C++ 10흥배 최
 
[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원
[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원
[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원탑크리에듀(구로디지털단지역3번출구 2분거리)
 
Cpp에서 활용해보는 Lambda식
Cpp에서 활용해보는 Lambda식Cpp에서 활용해보는 Lambda식
Cpp에서 활용해보는 Lambda식TonyCms
 
안드로이드 빌드: 설탕없는 세계
안드로이드 빌드: 설탕없는 세계안드로이드 빌드: 설탕없는 세계
안드로이드 빌드: 설탕없는 세계Leonardo YongUk Kim
 
[15]Android Kotlin을 통한 개발 전략
[15]Android Kotlin을 통한 개발 전략[15]Android Kotlin을 통한 개발 전략
[15]Android Kotlin을 통한 개발 전략NAVER Engineering
 
Legacy code refactoring video rental system
Legacy code refactoring   video rental systemLegacy code refactoring   video rental system
Legacy code refactoring video rental systemJaehoon Oh
 
S#03 김용현:VS2010으로 마이그레이션
S#03 김용현:VS2010으로 마이그레이션S#03 김용현:VS2010으로 마이그레이션
S#03 김용현:VS2010으로 마이그레이션codercay
 
Chapter7~9 ppt
Chapter7~9 pptChapter7~9 ppt
Chapter7~9 pptInjae Lee
 
Chapter5 ~ 6
Chapter5 ~ 6Chapter5 ~ 6
Chapter5 ~ 6Injae Lee
 
The roadtocodecraft
The roadtocodecraftThe roadtocodecraft
The roadtocodecraftbbongcsu
 
PySpark 배우기 Ch 06. ML 패키지 소개하기
PySpark 배우기 Ch 06. ML 패키지 소개하기PySpark 배우기 Ch 06. ML 패키지 소개하기
PySpark 배우기 Ch 06. ML 패키지 소개하기찬희 이
 
Opensource apm scouter in practice
Opensource apm scouter in practiceOpensource apm scouter in practice
Opensource apm scouter in practicedonghoonlee18659041
 

Similar to Chapter3 클래스의기본(윤현성) (20)

제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목
제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목
제 4회 DGMIT R&D 컨퍼런스 : IIFE와 QA공통항목
 
카사 공개세미나1회 W.E.L.C.
카사 공개세미나1회  W.E.L.C.카사 공개세미나1회  W.E.L.C.
카사 공개세미나1회 W.E.L.C.
 
Working Effectively With Legacy Code - xp2005
Working Effectively With Legacy Code - xp2005Working Effectively With Legacy Code - xp2005
Working Effectively With Legacy Code - xp2005
 
NDC11_김성익_슈퍼클래스
NDC11_김성익_슈퍼클래스NDC11_김성익_슈퍼클래스
NDC11_김성익_슈퍼클래스
 
About Visual C++ 10
About  Visual C++ 10About  Visual C++ 10
About Visual C++ 10
 
[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원
[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원
[IT기술칼럼#2] 고급자바스크립트 for AngularJS, React_고급자바스크립트,AngularJS,React전문교육학원
 
Cpp에서 활용해보는 Lambda식
Cpp에서 활용해보는 Lambda식Cpp에서 활용해보는 Lambda식
Cpp에서 활용해보는 Lambda식
 
안드로이드 빌드: 설탕없는 세계
안드로이드 빌드: 설탕없는 세계안드로이드 빌드: 설탕없는 세계
안드로이드 빌드: 설탕없는 세계
 
Shader Driven
Shader DrivenShader Driven
Shader Driven
 
[15]Android Kotlin을 통한 개발 전략
[15]Android Kotlin을 통한 개발 전략[15]Android Kotlin을 통한 개발 전략
[15]Android Kotlin을 통한 개발 전략
 
Legacy code refactoring video rental system
Legacy code refactoring   video rental systemLegacy code refactoring   video rental system
Legacy code refactoring video rental system
 
react-ko.pdf
react-ko.pdfreact-ko.pdf
react-ko.pdf
 
Linq
LinqLinq
Linq
 
S#03 김용현:VS2010으로 마이그레이션
S#03 김용현:VS2010으로 마이그레이션S#03 김용현:VS2010으로 마이그레이션
S#03 김용현:VS2010으로 마이그레이션
 
Chapter7~9 ppt
Chapter7~9 pptChapter7~9 ppt
Chapter7~9 ppt
 
Chapter5 ~ 6
Chapter5 ~ 6Chapter5 ~ 6
Chapter5 ~ 6
 
The roadtocodecraft
The roadtocodecraftThe roadtocodecraft
The roadtocodecraft
 
PySpark 배우기 Ch 06. ML 패키지 소개하기
PySpark 배우기 Ch 06. ML 패키지 소개하기PySpark 배우기 Ch 06. ML 패키지 소개하기
PySpark 배우기 Ch 06. ML 패키지 소개하기
 
Opensource apm scouter in practice
Opensource apm scouter in practiceOpensource apm scouter in practice
Opensource apm scouter in practice
 
Opensource apm scouter in practice
Opensource apm scouter in practiceOpensource apm scouter in practice
Opensource apm scouter in practice
 

Chapter3 클래스의기본(윤현성)