Notice
Recent Posts
Recent Comments
Link
목록절차지향프로그래밍 (1)
Welcome! Everything is fine.
#06. 절차지향 vs 객체지향
절차 지향 프로그래밍 (Procedural Programming) 프로시저(Procedure) 또는 함수 중심. 코드가 순차적으로 실행되며, 제어 흐름은 주로 조건문과 반복문을 통해 구현. 코드의 가독성 Good, 실행속도 빠름. 실행 순서가 정해져있으므로 상대적으로 유지보수 및 디버깅이 어려움. ex. c언어 // 절차 지향 프로그래밍 public class ProceduralExample { public static void main(String[] args) { // 데이터 String animalName = "고양이"; int animalAge = 3; // 함수 호출 makeAnimalSound(animalName); showAnimalAge(animalAge); } // 함수 정의 public..
CS 스터디
2024. 1. 30.