Object-oriented design for multiple classes

Slides:



Advertisements
Similar presentations
An Introduction to Visual Basic Terms & Concepts.
Advertisements

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
Solutions to Review Questions. 4.1 Define object, class and instance. The UML Glossary gives these definitions: Object: an instance of a class. Class:
Chapter 10: Introduction to Inheritance
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Java Programming, 3e Concepts and Techniques Chapter 5 Arrays, Loops, and Layout Managers Using External Classes.
Inheritance. In this chapter, we will cover: The concept of inheritance Extending classes Overriding superclass methods Working with superclasses that.
Chapter Day 23. © 2007 Pearson Addison-Wesley. All rights reserved Agenda Day 23 Problem set 4 Due Problem set 5 Posted (Last one)  Due Dec 8 Capstones.
Advanced Object-Oriented Programming Features
Chapter 13: Advanced GUI and Graphics
Chapter 13: Object-Oriented Programming
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
DT265-2 Object Oriented Software Development 2 Lecture 3 : Windows Programming Lecturer Pat Browne
Object Based Programming. Summary Slide  Instantiating An Object  Encapsulation  Inheritance  Polymorphism –Overriding Methods –Overloading vs. Overriding.
Visual Basic Chapter 1 Mr. Wangler.
An Object-Oriented Approach to Programming Logic and Design
Chapter 8: Writing Graphical User Interfaces
Computer Graphics Lecture 28 Fasih ur Rehman. Last Class GUI Attributes – Windows, icons, menus, pointing devices, graphics Advantages Design Process.
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part V: Design The Design Workflow Design Classes Refining Analysis Relationships.
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Graphical User Interface Components Chapter What You Will Learn Text Areas Text Areas Sliders Sliders Menus Menus –With frames –Pop up menus Look.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Systems Analysis & Design 7 th Edition Chapter 5.
Object-Oriented Design Simple Program Design Third Edition A Step-by-Step Approach 11.
1 Chapter Nine Using GUI Objects and the Visual Studio IDE.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
C# Programming: From Problem Analysis to Program Design1 10 Advanced Object-Oriented Programming Features C# Programming: From Problem Analysis to Program.
SD1230 Unit 6 Desktop Applications. Course Objectives During this unit, we will cover the following course objectives: – Identify the characteristics.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Microsoft Visual Basic 2008 CHAPTER ELEVEN Multiple Classes and Inheritance.
Object-Oriented Application Development Using VB.NET 1 Chapter 10 VB.NET GUI Components Overview.
Chapter 10: Introduction to Inheritance. Objectives Learn about the concept of inheritance Extend classes Override superclass methods Call constructors.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
Chapter 12 Object-oriented design for more than one class.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Understand How to Create New Controls and Extend Existing Controls Windows Development Fundamentals LESSON 2.3A.
Java Programming, Second Edition Chapter Twelve Advanced Inheritance Concepts.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Introducing Windows Applications Lesson 1. Objectives.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Visual Basic.NET Windows Programming
Multiple document interface (MDI)
Lesson # 9 HP UCMDB 8.0 Essentials
Object Oriented Programming
Introduction to Programming and Visual Basic
Chapter 8: More About OOP and GUIs
Chapter 1: An Introduction to Visual Basic 2015
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
Advanced Object-Oriented Programming Features
Chapter 8: Writing Graphical User Interfaces
Inheritance Modern object-oriented (OO) programming languages provide 3 capabilities: encapsulation inheritance polymorphism which can improve the design,
Using GUI Objects and the Visual Studio IDE
An Introduction to Visual Basic
Understanding Inheritance
VISUAL BASIC.
Hands-on Introduction to Visual Basic .NET
GRAPHICAL USER INTERFACE
Java Programming, Second Edition
Chapter 15: GUI Applications & Event-Driven Programming
Chapter 5.
Graphical User Interfaces
The University of Texas – Pan American
Basic Concepts of The User Interface
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Object-oriented design for multiple classes Chapter 13 Object-oriented design for multiple classes

Objectives To expand an object-oriented solution to cater for multiple classes To introduce interface and GUI objects

Object-oriented design for multiple classes 13.1 Object-oriented design for multiple classes

Object-oriented design for multiple classes Advantages in using inheritance: Saves time because the Parent class contains attributes and method that already exist Reduce errors because the Parent class method have already been tested and used

Interface and GUI objects 13.2 Interface and GUI objects

Interface and GUI objects Many popular programming languages provide a graphical user interface (GUI), which enables the programmer to select the elements of the program’s user interface from a pre-existing range of option Interface design is a subset of a program design, as it concentrates on one aspect of the program’s performance and implementation

Interface and GUI objects The interface are developed from predesigned classes available in the programming language The use interface option may include windows, buttons, menus, boxes to hold text, drop down list and many more

Summary Most object-oriented programs need more than one class. Classes can be related to each other through association, by aggregation or composition or by inheritance. Polymorphism allows several operations to have the same name, but they achieve their purposes by different methods.

Summary Using operation overriding, a child class may substitute the parent class version of an operation with its own specific version. With operation overloading, several operations of the same name may have different numbers of parameters and different algorithms.

Summary Interface design for visual programming languages uses object-oriented design principles. Interface objects have operations and attributes. The choice of interface design can reduce the complexity of both an algorithm and the resulting program.