static Qna 관련 답변 26 페이지

java에서 static 메소드에서는 일반...

... static 메소드에서는 일반 멤버 변수나 일반 메소드를 사용할수 없다는데 어째서 static main() 메소드에서는 일반 멤버 변수를 사용하죠? 이를테면 public static void...

태그:

자바 메서드 없이 static 으로 출력,....

... "); } public static void main(String args[]){ MainTest m = new MainTest(); m.say(); } } static 의 의미가 몬지 잘 이해가... public class Test{ static String str ="자바 넌 모니!!??"; public...

태그:

static메소드를 static메소드 아니게...

... public class AT{ public static void main(String... printArray(array); } private static void printArray(int... println("]") } } 위에 printArray메소드를 static...

태그:

자바 public static void main에...

... public static void main(Stirng[] args) { Car myCar = new Car... public static void main에 public은 왜 있는 건가요?... static 변수를 쓰는 메소드는 정적메소드 여야하고...

태그:

c++ static 멤버함수 관련 질문

... void next(); static int monthLength(int m);//<<<오류 함수 }... 0; } --------------------------------------------- static 멤버함수에서 static이 아닌...

태그:

JAVA 클래스와 객체 static 예제문제

... public static void main(String[] x) { System.out.println( add(1, 7) ); } } class Foo { static double add(double a, double b) { // 추가부분. static로 변경. return a...

태그:

C 에서 static이 의미하는 것?

C에서 static이 붙은 변수/함수와 그렇지 않은 변수... 함수에 static이 붙게되면 그 변수나 함수는... static이 붙지 않는다면 변수를 선언하고 그 변수를...

태그:

Java static과 non static의 차이점

Static변수나 메소드는 객체선언없이 클래스명으로 호출하여사용하고 non static메소드는 객체선언후 사용한다라고 알고있는데 정확히 왜 static을 사용하여 사용하는지...

태그:

자바 static선언에 관해서 질문입니다~!

... 자바는 메인메소드에 꼭(?) static을 붙여 주어야... 메소드에도 static을 붙여야 에러가 사라지고 돌아가더라구요 static으로 정의한 메소드안에서 전역변수는 쓸...

태그:

static전역변수에 대해서...

... */ static const double PI = 3.14159; static const char* MONTHS[12] = {"January", "February", "March... h" 만약 키워드 static을 사용하지 않는 상태에서 file1.c와 file2.c에 constant.h를...

태그:

    실시간 인기 검색어
    인기 검색어 더보기 →
    ...