일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- C#
- 무료 Java
- 알고리즘
- java
- C언어 표준 라이브러리 함수 사용법 가이드
- 소프트웨어 접근성
- math.h
- 소프트웨어 설계
- 디딤돌 C언어
- 클래스 다이어그램
- Escort GoF의 디자인 패턴
- StringBuffer 클래스
- 디딤돌 Java 언어 Part1
- 설계 패턴
- JAVA 언어
- C언어 표준 라이브러리 함수 가이드
- 소스 파일
- 동적 메모리 할당
- gof의 디자인 패턴
- 소스 구현
- 디딤돌 C++
- C언어
- 소스 코드
- C언어 소스 코드
- C++
- C# 소스 코드
- String 클래스
- XML.NET
- 파일 입출력
- C언어 소스
- Today
- 6
- Total
- 98,359
목록프로그램 소스 (550)
프로그램 소스
[C++ 소스] 학생 클래스 (== 연산자 중복정의, 클래스 내부에 정의)//Student.h#pragma once#include <iostream>#include <string>using namespace std;class Student{ string name; const int num;public: Student(int num,s..
[C++ 소스] 학생 클래스 (== 연산자 중복정의, 교환법칙 적용)//Student.h#pragma once#include <iostream>#include <string>using namespace std;class Student{ string name; const int num;public: Student(int num,stri..
[C++ 소스] 학생 클래스 (== 연산자 중복정의)//Student.h#pragma once#include <iostream>#include <string>using namespace std;class Student{ string name; const int num;public: Student(int num,string name);..
[C++ 소스] 학생 클래스 (연산자 중복정의 하기 전)//Student.h#pragma once#include <iostream>#include <string>using namespace std;class Student{ string name; const int num;public: Student(int num,string name..
[Java 소스] 안전한 하향 캐스팅 예 Drummer.java Musician.java Pianist.java Program.java//기반 클래스public abstract class Musician { public abstract void Play(); }//파생 클래스 Drummerpublic class Drummer ext..
[Java 소스] 묵시적 하향 캐스팅 오류 예//기반 클래스public abstract class Musician { public abstract void Play(); }//파생 클래스 Drummerpublic class Drummer extends Musician { @Override&nb..
[Java 소스] 인터페이스 다중 상속 예//IStudy 인터페이스public interface IStudy { abstract void study(); }//IWork 인터페이스public interface IWork { abstract void work(); }//인터페이스 다중 ..
[Java 소스] 계층화 인터페이스 예//기반 인터페이스public interface IGetName { public abstract String getName(); }//구현 클래스public class Student implements IStudy { String name; &nb..
[Java 소스] 인터페이스 정의 및 구현 클래스 정의 예//인터페이스public interface IStudy { abstract void study(); }//구현 클래스public class Student implements IStudy { @Override  ..
[Java 소스] 계층화 추상 클래스 예//최상위 추상 클래스public abstract class BaseAClass { public abstract String getString(); }//파생 클래스(추상 클래스)public abstract class DerivedAClass extends BaseAClass { &nbs..
[Java 소스] 추상화 예public abstract class Musician { public abstract void play(); }public class Pianist extends Musician{ @Override public void play(){ System.out.println..
[Java 소스] 다형성 예public class Musician { public void play(){ System.out.println("랄라라"); } }public class Pianist extends Musician{ @Override public void ..
기반 형식의 protected로 접근 지정한 멤버를 파생 형식에서 접근public class Musician { int skill; static final int MAX_SKILL = 100; static final int MIN_SKILL = 0; public Musician(){  ..
[Java 소스] 기반 형식의 멤버 필드를 파생 클래스에서 재정의public class Musician { protected String name; public Musician(String name){ this.name = name; } public..
[Java 소스] 파생 클래스에서 무효화한 기반 클래스의 메서드 사용public class Musician { public void play(){ System.out.println("음악가 연주하다."); } }public class Pianist extends Musician {  ..
[Java 소스] 파생 클래스에서 기반 형식 메서드를 재정의public class Musician { public void play(){ System.out.println("음악가 연주하다."); } }public class Pianist extends Musician{  ..
파생 클래스 생성자에서 super 키워드로 기반 형식부분 생성public class Musician { String name; public Musician(String name){ this.name = name; } public String getN..
[Java 소스] Musician을 기반으로 파생 클래스 Pianist를 정의public class Musician { public void play(){ System.out.println("연주하다."); } }public class Pianist extends Musician{  ..
학생 번호 num 멤버 필드에 fianl 키워드를 명시하여 상수화 예//final을 이용하여 num 멤버를 상수화public class Student { static int last_num=0; //정적 멤버 final int num; //상수화한 멤버 &nbs..
정적 멤버 필드에 fianl 키워드를 명시하여 상수를 지정한 예public class Unit { static final int MAX_HP = 100; static final int MIN_HP = 0; int hp; public Unit(){ h..
[Java 소스] 정적 멤버 필드를 이용한 개체의 일련 번호 부여하는 예public class Unit { static int last_seq; int seq; public Unit(){ last_seq++;  ..
[Java 소스] 생성자 중복 정의 및 this, this() 사용 예public class Member { String id; String name; int age; public Member(String id){ this(id,"",0); ..
쓰레기 수집 - System.gc()와 System.runFinalization() 호출 예public class Unit { int num; public Unit(int num){ this.num = num; &..
[Java 소스] 쓰레기 수집 - System.gc()를 호출한 예public class Unit { int num; public Unit(int num){ this.num = num; } &..
[Java 소스] 쓰레기 수집에 관한 코드 작성 하지 않은 예public class Unit { int num; public Unit(int num){ this.num = num; } public int getNum(){ &nbs..
[설계 패턴 C#] 25. 방문자 패턴(Visitor Pattern)"본문 내용"[Escort GoF의 디자인 패턴 C#] 25. 방문자 패턴(Visitor Pattern)[Escort GoF의 디자인 패턴 C#] 25. 방문자 패턴(Visitor Pattern) 설계[Escort GoF의 디자인 패턴 C#] 25. 방문자 패턴(Visitor Pattern) 구현 ▶ Element.csnamespace Vi..
[설계 패턴 C#] 24. 템플릿 메서드 패턴(Template Method Pattern)"본문 내용"[Escort GoF의 디자인 패턴 C#] 24. 템플릿 메서드 패턴(Template Method Pattern)[Escort GoF의 디자인 패턴 C#] 24. 템플릿 메서드 패턴(Template Method Pattern) 설계[Escort GoF의 디자인 패턴 C#] 24. 템플릿 메서드 패턴(Template Method Pattern..
[설계 패턴 C#] 23. 전략 패턴(Strategy Pattern)"본문 내용"[Escort GoF의 디자인 패턴 C#] 23. 전략 패턴(Strategy Pattern)[Escort GoF의 디자인 패턴 C#] 23. 전략 패턴(Strategy Pattern) 설계[Escort GoF의 디자인 패턴 C#] 23. 전략 패턴(Strategy Pattern) 구현 ▶ Picture.csnamespace St..
[설계 패턴 C#] 22. 상태 패턴(State Pattern)"본문 내용"[Escort GoF의 디자인 패턴 C#] 22. 상태 패턴(State Pattern)[Escort GoF의 디자인 패턴 C#] 22. 상태 패턴(State Pattern) 설계[Escort GoF의 디자인 패턴 C#] 22. 상태 패턴(State Pattern) 구현 ▶ Iris.csnamespace State{  ..