Tutorial 5 Introducing Code Programming. What is Class Building blocks of a program Provided by VB.Net Framework Class Library Template definition of.

Slides:



Advertisements
Similar presentations
OO Programming in Java Objectives for today: Overriding the toString() method Polymorphism & Dynamic Binding Interfaces Packages and Class Path.
Advertisements

Python Objects and Classes
George Blank University Lecturer.
OOP - Object Oriented Programming Object Oriented Programming is an approach to programming that was developed to make large programs easier to manage.
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.
OBJECT-ORIENTED PROGRAMMING. What is an “object”? Abstract entity that contains data and actions Attributes (characteristics) and methods (functions)
More about classes and objects Classes in Visual Basic.NET.
COMP171 Data Structure & Algorithm Tutorial 1 TA: M.Y.Chan.
Functional Design and Programming Lecture 1: Functional modeling, design and programming.
Basic OOP Concepts and Terms
Object-oriented Programming Concepts
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Lecture 1 Introduction to Computers and Object-
Object Oriented Paradigm Programming Paradigms En Mohd Norafizal A.Aziz.
Object Oriented Concepts. Movement toward Objects Instead of data-oriented or process-oriented Analysis, many firms are now moving to object-oriented.
INTRODUCTION TO JAVA PROGRAMMING Chapter 1. What is Computer Programming?
Distribution of Marks Internal Sessional Evaluation Assignments – 10 Quizzes – 10 Class Participation Attendence – 5 Mid – Term Test – 25 External Evaluation.
Like our natural language. Designed to facilitate the expression and communication ideas between people and computer Like our natural language. Designed.
What is Object-Oriented Programming?. Objects – Variables and Logic inside "Objects", not standalone code – Objects contain related variables and functions.
Microsoft Visual Basic 2005: Reloaded Second Edition
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.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter Chapter 1 Introduction to Object-Oriented Programming and.
BCS 2143 Introduction to Object Oriented and Software Development.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
SE-280 Dr. Mark L. Hornick Design Review Issues. SE-280 Dr. Mark L. Hornick 2 Many expensive defects are a result of design problems Software applications.
CONCEPTS OF OBJECT ORIENTED PROGRAMMING. Topics To Be Discussed………………………. Objects Classes Data Abstraction and Encapsulation Inheritance Polymorphism.
Chapter 11 Introduction to Classes Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
BIT 1003 – Presentation 7. Contents GENERATIONS OF LANGUAGES COMPILERS AND INTERPRETERS VIRTUAL MACHINES OBJECT-ORIENTED PROGRAMMING SCRIPTING LANGUAGES.
An Introduction to Visual Basic
Chapter 9: Getting Comfortable with Object- Oriented Programming.
SE-1010 Dr. Mark L. Hornick 1 Introduction to Object-Oriented Programming (OOP) Part 1.
1. 2 Object-Oriented Concept Class & Object Object-Oriented Characteristics How does it work? Relationships Between Classes Development Tools Advantage.
Chapter 8. About the Midterm Exam.. Exam on March 12 Monday (Tentatively) Review on March 7 Wednesday Cover from Chapter 6 Grades will be out before spring.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Inheritance Building one object from another. Background Object-oriented programming is normally described has offering three capabilities Encapsulation:
SNPL1 Woochang Lim What (Variable) + How (Function) = Object Objects are the physical and conceptual things we find in the universe around us. Object-Oriented.
Object-Oriented Programming. An object is anything that can be represented by data in a computer’s memory and manipulated by a computer program.
Basic OOP Concepts and Terms. In this class, we will cover: Objects and examples of different object types Classes and how they relate to objects Object.
BCS 2143 Object Oriented Design Using UML. Objectives Objects Interactions Finding Classes Relationship Between Classes Attribute and Operation Class.
Definition of Object - Oriented Language.. Object-oriented programming (OOP) is a programming language model organized around "objects" rather than "actions"
1 Programming Paradigms Object Orientated Programming Paradigm (OOP)
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
: Maha Sabri Altememe Lecturer : Maha Sabri Altememe Lecture :1 1.
Session 24 Chapter 12: Polymorphism. Polymorphism polymorphism comes from the Greek root for “many forms” polymorphism is about how we can use different.
Salman Marvasti Sharif University of Technology Winter 2015.
Object-Oriented Programming. Objectives Distinguish between object-oriented and procedure-oriented design. Define the terms class and object. Distinguish.
Copyright © 2006 The McGraw-Hill Companies, Inc. Programming Languages 2nd edition Tucker and Noonan Chapter 1 Overview A good programming language is.
Object-Oriented Programming (OOP) What we did was: (Procedural Programming) a logical procedure that takes input data, processes it, and produces output.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
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.
Basic Concepts of OOP.  Object-Oriented Programming (OOP) is a type of programming added to php5 that makes building complex, modular and reusable web.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
1 n Object Oriented Programming. 2 Introduction n procedure-oriented programming consists of writing a list of instructions and organizing these instructions.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
What is an object?. What Makes an Object? An object has identity (it acts as a single whole). Every object has a name that identifies what it is. Ex.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
ITSE 1430 – Introduction to C# Programing Chapter 1 – Introduction to Computers, the Internet and Visual C# ITSE Introduction to C# Programing 1.
Introduction to Object-oriented Programming
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
A basic tutorial for fundamental concepts
Java Primer 1: Types, Classes and Operators
Programming the Web Using Visual Studio .NET
Section 11.1 Class Variables and Methods
Recitation 6.
Introduction to computers, the Internet & VB .Net
Object Oriented Programming (OOP) LAB # 9
Object-Oriented Programming
Basic OOP Concepts and Terms
Let’s Talk about… Smalltalk.
Presentation transcript:

Tutorial 5 Introducing Code Programming

What is Class Building blocks of a program Provided by VB.Net Framework Class Library Template definition of the methods and variables in a particular kind of object VB Windows forms inherit definitions from the System.Windows.Forms.Form class.

Object-Oriented Programming (OOP) Programming language model Organized around "objects" rather than "actions" and data rather than logic Subclass and inheritance Sources: techtarget.comtechtarget.com Class 1Class 2 Food Fruit Apple Machine Computer Apple Continue 

Polymorphism: Actions or behaviors that share the same essence would have a common name even though they belong to different objects. E.g., opening (action) a computer application (object) is different from opening a door in terms of operations. However, the name of the action for both objects is open since the idea is the same. ComputerApplicatoin.Open Door.Open

Structures of OOP Action  Object.Behavior  Object.Method Value  Object.Property  Object.Attribute

Val and Str Functions Val: Returns a numeric value of an argument (string value)  E.g. Val(“123”)  123 Str: Returns a string value  E.g. Str(123)  “123”