C#프로그래밍(기본) 3차
환경: Windows 10 비주얼 스튜디오 2012
매개 변수.

동작 결과.

이번에는 이름과 숫자만 준비했다.

설정에 따라 이름과 숫자만 표시됩니다.

속성을 사용한 아까와 달리 이번에if로 값을 줄여도 상관없다고 설정합니다
여기서부터 한 장은 못 받아요.


동작 결과 이름이 없으면 Noname, 숫자가 음수일 때는 0으로 설정하여 올바르게 작동합니다.

이번에는 상속을 사용해 보았고, 상속 측도 추가 정보를 넣었다.


동작 결과.

그런 다음 OverRide를 사용해 보십시오.


동작 결과 변경 사항 없음...

이것은 New를 사용하는 물건입니다...

동작 결과도 변함이 없어 보인다.

이번에는 OverRide와 New를 사용하여 동작의 차이를 확인합니다.


동작 결과는 OverRide에서는 변경되지 않지만 New에서는 변경됩니다.
OverRide는 덮어쓰지만 New는 추가됩니다.

마지막으로 정적 반을 사용해 보았다.


동작 결과.

Reference
이 문제에 관하여(C#프로그래밍(기본) 3차), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yuugawa/items/3b125ed0649825afb9d5텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)