01:198:111 Lecture Notes - Lecture 13: Type System, Procedural Programming, Simula
01:198:111 verified notes
13/28View all
Document Summary
Java is an object oriented programming language that is designed to build programs using this methodology. Software is a simulation of the real world. We know approximately how the real world works. We design software to model the real world. Procedural: taking a complex problem and writing procedures to simplify and solve the problem. We tell the computer what to do(verb oriented. Humans have attributes, (instances and variables) and can do things, (methods/procedures) In terms of real world problems, we try to design objects that reflect the real world. The process of thinking of programming objects in a situation rather than thinking about subtasks(functions, procedures, and methods) Object class: the general form/blueprint e. g. a car. Objects: the actual object instance itself made from the class e. g. a beetle or mini. Done to give more memory if needed for the programs. Encapsulation: to hide information to make programs robust. Type checking: to avoid and find errors in programs.