CSE3302 Programming Languages (new notes)Object-Oriented ProgrammingSmalltalkStructural OrganizationObjects and ClassesMessagesSlide 7CSE 3302 CSE@UTA Programming LanguagesCh. 12Ch. 12 1 jcmtCSE3302CSE3302Programming LanguagesProgramming Languages(new notes)(new notes)Dr. Carter TiernanCSE 3302 CSE@UTA Programming LanguagesCh. 12Ch. 12 2 jcmtObject-Oriented Object-Oriented ProgrammingProgramming•Rich interactive environment–Graphics–Sound•Simulation tasksCSE 3302 CSE@UTA Programming LanguagesCh. 12Ch. 12 3 jcmtSmalltalkSmalltalk•Alan Kay•Xerox PARC - Dynabook•Windows-oriented display•Interactive language–Point and click or dialogue•Objects and cla ssesCSE 3302 CSE@UTA Programming LanguagesCh. 12Ch. 12 4 jcmtStructural OrganizationStructural Organization1. Objects have a behavior2. Objects can be made to do things by sending them messages3. Repetitive operations can be simplified by using control structuresCSE 3302 CSE@UTA Programming LanguagesCh. 12Ch. 12 5 jcmtObjects and ClassesObjects and Classes•Objects are instantiated•Classes are defined •Operators are overloaded implicitly•Methods work with any object matching protocol•Hierarchical classes •Only single inheritance•Names are not typed - dynamic type checkingCSE 3302 CSE@UTA Programming LanguagesCh. 12Ch. 12 6 jcmtMessagesMessages•Message passing is like procedure invocation•Three message forms–Parameters with keywords and colons–No parameters–Arithmetic•Supports concurrencyCSE 3302 CSE@UTA Programming LanguagesCh. 12Ch. 12 7 jcmtSmalltalkSmalltalk•Small and regular language•Windows!•Integrated programming environment•Simulation–Objects to model real-world elements–Classification of objects–Interaction through
View Full Document