본문 바로가기

반응형

분류 전체보기

(504)
React - Style Libraries (Bootstrap) Let's see how we can add style libraries in the React application Bootstrap Run the command shown below to install the bootstrap npm i bootstrap Add the path in the index.js file import 'bootstrap/dist/css/bootstrap.css'; Done References Adding Bootstrap | Create React App (create-react-app.dev) Adding Bootstrap | Create React App While you don’t have to use any specific library to integrate Boo..
리액트 - 스타일 라이브러리(부트스트랩) 리액트 애플리케이션에 스타일라이브러리를 추가하는 방법을 살펴보자 부트스트랩 아래 커맨드를 통해 부트스트랩 설치 npm i bootstrap index.js 파일에 경로추가 import 'bootstrap/dist/css/bootstrap.css'; 이상 참고 Adding Bootstrap | Create React App (create-react-app.dev) Adding Bootstrap | Create React App While you don’t have to use any specific library to integrate Bootstrap with React apps, it's often easier than trying to wrap the Bootstrap jQuery plugins. R..
Polymorphism In Object Oriented Programming, it is possible to use one interface to implement different types and this feature is called polymorphism. Think of it as a form that can take various values. So polymorphism is just a functionality that allows different values with one class. Runtime Type VS Compile-time Type Typing As mentioned polymorphism enables us to use one class to implement different value..
폴리모피즘 객체지향 프로그래밍에서는 하나의 인터페이스를 통해 다양한 타입을 구현은 것이 가능한데 이를 폴리모피즘이라고 한다. 하나의 폼을 통해 다양한 값을 주입하는 것이 가능하듯이 하나의 클래스를 폼이라고 생각하면 해당 폼에 다양한 값을 넣을 수 있는 것이 폴리모피즘이라고 보면 된다. 런타임타입 VS 컴파일타입 타입핑 언급한 대로 폴리모피즘은 하나의 클래스를 통해 다양한 타입을 사용하게 하는 데 이는 런타임과 컴파일타입의 차이로 인해 가능하다. 주로 컴파일타입은 변수 정의의 좌측에 런타임타입은 변수 정의 우측에 온다. 지역변수 var (LVTI) 자바버전 10에서 추가된 기능으로 타입에 구애 없이 변수를 정의하게 해 준다. 지역변수타입 추측(LVTI) 아래와 같은 제한을 가진다. 1. 클래스의 필드로 사용불가 2...
Method Overriding VS Overloading What is the difference between overriding and overloading in Java? Simply put the difference between them is that method overloading means when methods with the same name but different parameters are usually under one class while the method overriding is when a child class manipulates a method from its parent without changing any parameters. Overloading VS Overriding Common Happens when we manip..
함수 오버로딩 VS 오버라이딩 자바에서 함수 오버로딩과 오버라이딩에 대해 알아보자 (비슷하게 생겨서 헷갈린다). 간단한 차이를 보면 함수 오버로딩은 주로 같은 클래스 내에 동일한 이름을 가진 함수가 다른 매개변수를 가질 때를 의미하고 함수 오버라이딩은 자식클래스가 부모로부터 상속받은 함수를 함수이름이나 매개변수 변경 없이 자식 클래스의 특성에 맞게 수정할 때 사용된다. 오버로딩 VS 오버라이딩 공통점 같은 이름을 가진 함수를 수정 차이점 오버로딩 오버라이딩 함수의 기능을 다른 매개변수로 다양화 부모 클래스 함수를 자식클래스에서 수정 상속관계에서도 사용가능 반드시 상속관계에서만 가능 매개변수가 다르다 (같으면 에러뜬다) 매개변수가 같아야 한다 리턴 타입 달라도 된다 리턴 타입이 같아야 한다 접근권이 달라도 된다 자식함수는 부모함수보다 ..
java: error: release version 21 not supported This error occurs when there is a discrepancy between the Java compiler (JDK) version and the Maven file version. Java compiler version must be equal to or higher than the Maven version to avoid this error. One example that you might encounter this error would be when you create a project without checking the Java and packaging version as shown below If you see the error below when running the p..
자바: 에러: release version 21 not supported 자바 컴파일러 (JDK) 버전과 메이븐 파일의 버전이 불일치할 때 나는 에러로 컴파일러 버전은 반드시 메이븐 버전과 같거나 그 이상이어야 한다. version not supported 에러는 아래와 같이 프로젝트를 생성할 때 SDK와 버전을 확인하지 않고 생성하는 경우 발생한다 프로젝트 생성 후 구동 시 아래와 같은 오류가 나타난다면 파일 -> 프로젝트 설정에서 SDK 버전을 업데이트하거나 pom.xml 파일에 parent와 프로퍼티 버전을 다운그레이드하면 된다 우측 상단에 조그만 아이콘을 클릭하여 pom.xml 파일을 반영 (Ctrl + Shift + O) 이상 HTML 삽입 미리보기할 수 없는 소스

728x90