컴퓨터의 컴퓨터의 기초 기초 (2) (2)
(010.142.008) (010.142.008)
담당교수담당교수: : 송재준송재준 (9043, (9043, [email protected]@snu.ac.kr)) 조교조교: : 김정규김정규 (7234, [email protected])(7234, [email protected])
http://
http://rockeng.snu.ac.krrockeng.snu.ac.kr/freeboard//freeboard/
Features of Visual Basic Features of Visual Basic
1) Easily and quickly built
1) Easily and quickly built Graphic User Graphic User Interface
Interface
2) 2) EventEvent--DrivenDriven languagelanguage
3) 3) ObjectObject--OrientedOriented Language (Programming)Language (Programming)
1) Graphic User Interface
1) Graphic User Interface
2) Event
2) Event - - Driven language Driven language
• • Event ( Event ( 이벤트 이벤트 ) )
- - Something that happens during Something that happens during software running
software running
- - Mouse (double) click, Mouse (double) click, Key press, Key press, Window (form) resize, Text change
Window (form) resize, Text change … …
3) Object
3) Object - - Oriented Programming Oriented Programming
• •
OOP OOPA A programming paradigmprogramming paradigm that that
uses "objects" and their interactions to uses "objects" and their interactions to
design computer programs. (1990s~) design computer programs. (1990s~)
• •
ObjectObjectIndependent little program
Independent little program with a with a distinct role which is capable of distinct role which is capable of
receiving, processing and sending data receiving, processing and sending data
to other objects.
to other objects.
• • Class Class
A class
A class defines defines the characteristics the characteristics ( ( data fields, data fields, properties properties ) and ) and
behaviors (
behaviors ( methods, events methods, events ) of an ) of an object
object (s) which are called (s) which are called members members . .
Blueprint
Apartment A
Apartment B
:
Class Object (Instance)
Instanciation
Integrated Development Integrated Development
Environment (IDE) Environment (IDE)
• •
Menu, ToolbarMenu, Toolbar• •
ToolboxToolbox• •
Edit window Edit windowStart page, Code window, Form design Start page, Code window, Form design
• •
Solution ExplorerSolution Explorer• •
PropertiesProperties• •
Control ControlAn object with graphical user interface An object with graphical user interface
• •
FormFormA kind of container control that has other A kind of container control that has other
controls on it.
controls on it.
Ex.1) Web browser
Ex.1) Web browser
Ex.2) Color change / Menu
Ex.2) Color change / Menu
Assignment Assignment
• •
Describe 30 properties of Describe 30 properties of ‘‘ButtonButton’’ control after trying them.control after trying them.