Changing API
API๋ฅผ ํ์ฅํ์ฌ ๋ ๋ง์ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค. ํด๋ผ์ด์ธํธ๊ฐ ์์ผ ์นด๋์ ๋ํ ์ค ๋ชฉ๋ก์ ์ง์ ํ ์ ์๋๋ก ํฉ๋๋ค:
Let us extend the API with more functionality: we want to let clients specify a l> ist of lines for the birthday card:
package com.example.birthdayservice;
/** Birthday service interface. */
interface IBirthdayService {
/** Generate a Happy Birthday message. */
String wishHappyBirthday(String name, int years, in String[] text);
}