Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe
Tagged

Introduction

A collection of 1 post

@DeclareParents

Introduction 예제

먼저 추가 할 기능의 명세서인 인터페이스가 필요하고 그것을 구현한 클래스가 필요합니다. public interface TicketTracked {    void incrementTicketCount();} public class TicketTrackedImpl implements TicketTracked {    static int count = 0;    public void incrementTicketCount() {        System.out.println(“표 ” + (++count) + ” 장 팔았다.”); 

  • 백기선
백기선 Apr 4, 2007 • 1 min read
Whiteship © 2022
Powered by Ghost