[10/13/2022] Initial Setting : Class, Constructor, import, Package, Loader, Backend, Frontend setting

* Purpose: (목적)

(1) Import data from another package (Backend & frontend) and collect them in one source package (Loader)

백앤드 프론트앤드 각각의 패키지 데이터를 하나의 로드 패키지에 수집

** Initial setup 

Usually setting up for 3 different packages that accordingly need to create a class per each of packages. 

1. Loader 
2. Front end 
3. Back end

보통 3개의 패키지를 생성 후 각각 클래스를 부여 하는 것이 일반적 


***Flow & Points 

(1) Since a Class does not have a tangible data format for storage in the memory, once we create a class we need to declare it as a constructor. 

하나의 클래스는 형체가 없는 데이터 타입으로 다른 곳으로 불러 오기 위해서는 생산자(Constructor) 의 개념을 이용해야 함. Constructor 는 class 생성과 동시에 자동으로 만들어짐.. 동시에 여러개의 생산자를 만들 수 있으며 클래스를 만드는 방식은 아래와 공식과 같음 

(1-2) Once we assign the class, it generates a constructor automatically.

(2) Available to create multiple constructors at the same time. But normally need to create the 2 basic classes. 1st for) Front end 2nd for) Back end

(2-1) Assigning a class 


Public class name 
                (randomly)



                                                
                                                        (2) & (2-1)


(3) Now, we need to import both packages into the main loader package, to bring out use a input fomula. (that is super similar with the way of Scanner.)

Class name = new class(
(randomly)        
 
(3-1) Class is same as constructor. 
(3-2) Need to import both classes (backend & frontend ) in the loader class. 

클래스는 곧 생상자다. 
이때 생산된 백앤드, 프론트 앤드의 각각 클래스 생산자는 로더에 임포트 시켜야 함. 




(4) Works of each class (backend & frontend) imported into the loader 
임포트 된 결과물은 아래와 같음 



                        Backend                                 Front end 
                                                    loader 



output





Comments