1 :)Advanced:) Visual Basic laura leventhal and julie barnes.

Slides:



Advertisements
Similar presentations
Understand and appreciate Object Oriented Programming (OOP) Objects are self-contained modules or subroutines that contain data as well as the functions.
Advertisements

An Introduction to Visual Basic Terms & Concepts.
OOP in VB. OOP Principles An object – in memory – has –Some data values members –Pieces of executable code methods Objects usually come and go during.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
1 OBJECT-ORIENTED CONCEPTS. 2 What is an object?  An object is a software entity that mirrors the real world in some way.  A software object in OOP.
Solutions to Review Questions. 4.1 Define object, class and instance. The UML Glossary gives these definitions: Object: an instance of a class. Class:
Classes & Objects Computer Science I Last updated 9/30/10.
Classes and Object- Oriented... tMyn1 Classes and Object-Oriented Programming The essence of object-oriented programming is that you write programs in.
OOP Design Patterns Chapters Design Patterns The main idea behind design patterns is to extract the high level interactions between objects and.
Design Activities in Usability Engineering laura leventhal and julie barnes.
Programming Language Paradigms: summary. Object-oriented programming Objects are the fundamental building blocks of a program. Interaction is structured.
OOP in C. Cfront Original C++ compiler was just a pre- processor –generated C code which could be compiled with an existing C Compiler.
Creating Object Oriented Programs Object oriented (OO) terminology Class vs. object Instantiate an object in a project Understand Class_Initialize / Terminate.
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Object-oriented design CS 345 September 20,2002. Unavoidable Complexity Many software systems are very complex: –Many developers –Ongoing lifespan –Large.
1 INTRODUCTION TO OOP Objective: Know the difference between functional programming and OOP Know basic terminology in OOP Know the importance of OOP Know.
BACS 287 Basics of Object-Oriented Programming 1.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
OOP Languages: Java vs C++
What is Object-Oriented Programming?. Objects – Variables and Logic inside "Objects", not standalone code – Objects contain related variables and functions.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Comparison of OO Programming Languages © Jason Voegele, 2003.
Unit 20: Event Driven Programming
Programming Languages and Paradigms Object-Oriented Programming.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Object Orientation An Object oriented approach views systems and programs as a collection of interacting objects. An object is a thing in a computer system.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 8: More About OOP and GUIs.
An Object-Oriented Approach to Programming Logic and Design
Intellicad Visual Basic Application Marian Kate Santos Programming Paradigm.
Software Construction Lecture 10 Frameworks
An Introduction to Visual Basic
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 01 Introduction to Computer Programming.
Programming Languages and Paradigms Object-Oriented Programming (Part II)
CSC 211 Introduction to Design Patterns. Intro to the course Syllabus About the textbook – Read the introduction and Chapter 1 Good attendance is the.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 24P. 1Winter Quarter C++ Lecture 24.
OOP Class Lawrence D’Antonio Lecture 3 An Overview of C++
Advanced Object- Oriented Programming Programming Right from the Start with Visual Basic.NET 1/e 14.
GUIs in Java Swing, Events CS2110, SW Development Methods Readings: MSD, Chapter 12 Lab Exercise.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (1/2)
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Boris Milašinović Faculty of Electrical Engineering and Computing University of Zagreb, Croatia 15th Workshop on "Software Engineering Education and Reverse.
Inspired by the Oulipu. The 3 Tenets of OO Encapsulation Polymorphism Inheritance.
OO in Context Lecture 13: Dolores Zage. Confused about OO Not alone, there is much confusion about OO many programs are claimed to be OO but are not really.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Fundamentals of Visual Modeling with UML Module 1: Introduction to Object Technology.
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
COP 4331 – OOD&P Lecture 7 Object Concepts. What is an Object Programming language definition: An instance of a class Design perspective is different.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
Week 1 Lecture 1 Slide 1 CP2028 Visual Basic Programming 2 “The VB Team” Copyright © University of Wolverhampton CP2028 Visual Basic Programming 2 v Week.
Software Design and Development Languages and Environments Computing Science.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (1/2)
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Object-Orientated Programming
Section 2.1: Programming paradigms
INF230 Basics in C# Programming
Chapter 8: More About OOP and GUIs
OOP What is problem? Solution? OOP
Week 4 Object-Oriented Programming (1): Inheritance
Section 2.1: Programming paradigms
An Introduction to Visual Basic
Software engineering USER INTERFACE DESIGN.
Object-Oriented Programming
Features of OOP Abstraction Encapsulation Data Hiding Inheritance
Basic OOP Concepts and Terms
What Is Good Software(Program)?
A Level Computer Science Topic 6: Introducing OOP
Presentation transcript:

1 :)Advanced:) Visual Basic laura leventhal and julie barnes

2 Main Points VB classes and OOP Timer object

3 Why Think About OO with Event-Driven Programming Recall that the idea of event driven programming is that the program is ready and waiting to respond to an “event” The event will happen in real-time. –Examples are real-time controllers –User interface events So what do event responses have to do with OO?

4 Event Driven and OO OO software engineering is a way of thinking about projects that promotes good design principles, like encapsulation of function and code reuse. Encapsulation and reuse are useful in all programming situations including event driven.

5 OO and UI programming User interfaces are particularly appropriate to OO notions because we can visualize a user interface as a collection of communicating objects.

6 VB, OO and UI Visual Basic was not designed as an OO language, but does support OO notions. –Inheritance, polymorphism and encapsulation. –Note that C did not initially support OO either.

7 Using OO in VB for UI From a UI developer perspective, we use OO in the following ways –Whenever we use VB controls, we are relying on an OO way of thinking. The individual buttons and so on that you use inherit properties and methods from a generic button definition. –You can also use OO to retain state information about your control objects. In this way you can encapsulate and isolate this state information. Also, by using classes, you do not have to rewrite code when a particular interface control is used more than once. –VB classes can be used to support conventional, non-UI programming as well.

8 VB Classes Remember OOP from CS 215? VB also supports OOP VB class modules contain: –Data (called properties in VB0 –Commands for manipulating the data (called methods in VB) –File extension.cls

9 Typical Class Module Consists of –Variable Declarations –Property Declarations –Methods: Event-driven vs. linear

1010 Demos? VB classes timers

1