블로그
-
️2/3부- 웃음은 내적인 기쁨의 표현️[P2/3] Laughter – Expression of Inner Joy, Jun. 11, 2001, Florida, USA
In the class, the teacher said to the student, “Alcohol is very bad for our health. There was an experiment done with dog(-people). The one, they ga.......
blog.naver.com · 2026.08.19
-
객체지향 기법(OOP, Object-Oriented Programming)
프로그램을 데이터(속성)와 기능(메서드)을 가진 객체(Object) 중심으로 개발하는 기법 객체(Object) 클래스(Class) 객체지향 4대 특징 1. 상속(Inheritance) 기존 클래스의 속성과 기능을 물려받음 예) 동물 ↓ 개 동물의 기능을 개가 그대로 사용 class Animal: pass class Dog(Animal)
blog.naver.com · 2026.06.21
-
18.06.11 JAVA
d = 3; Dog d = new Dog(); d.speak() ==> Dog의 speak 하향 형변환 == Downcasting Dog d = new Animal(); ( Animal { void speak() { System.out.println("동물의 소리"); } } class Dog extends Animal { vo.......
blog.naver.com · 2018.06.11
-
자바 string 클래스 사용하기
import java.util.Scanner; public class TelevisionTest { public static void main(String[] args) { String proverb="A barking dog"; String s1,s2,s3,s4; System.out.println("문자열의 길이="+proverb.length()); s1=proverb.concat
blog.naver.com · 2017.12.06
-
47번째 퍼즐 - 착한 나의 강아지와 고양이!
public class Q47_Well_Dog_My_Cats { public static void main(String[] args) { Dog[] dogs = { new Dog() , new Dog() }; for (int i = 0; i < dogs.length; i++) { dogs[i].woof(); } Cat[] cats = { new Cat(),
blog.naver.com · 2015.04.30
-
[영진전문대 컴퓨터정보계열프로그래밍전공]9월26일 공부내용
종복정의는 이름만 같아야 한다. public class Animal { public void sound() { } }; public class Dog extends Animal { public int sound() }; 오류가 날 경우 class Dog extends Animal { @Override void sound() { } } 묵시적인 생성자 호출 class
blog.naver.com · 2013.09.26
-
[영진전문대 컴퓨터정보계열] JAVA
public class StringTest { public static void main (String[] args) { String proverb = "A barking dog"; System.out.println(s2); System.out.println(s3); System.out.println(s4); } } 실행결과 : 문자열의 길이 = 13 A brking dog
blog.naver.com · 2013.04.23