SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
Kenia Álava
The programmer must establish the association between the machine model "solution
space" that is where to deploy the solution, such as a computer, and the problem is what
you really want to solve "problem space" that is where the problem exists, the business.

What is an abstraction? Alan kayresumion the five basic characteristics of Smalltalk for an
object, the first object-oriented language that was successful and one of the languages
that is based on JAVA. These characteristics represent a pure approach to object-oriented
programming.

1. Everything is an object. Think of an object as a variable stores data, allows you "raise
requests" asking him to perform operations on itself. In theory, you can take any
conceptual component of the problem that is being addressed.

2. A program is a bunch of objects that tell each other what to do by sending messages. To
make a solicitude to an object, you must send a message to that object. More specifically,
you can think of a message is a request to call a method that belongs to a particular
object.

3. Each object has its own memory made up of other objects. Put another way, you can
create a new class of Obeto defining a package containing existing objects. Therefore, it
may increase the complexity of a program hiding behind the simplicity of the objects.

4. Every object has an associated type. As the saying goes, every object is an instance of a
case where "class" synonymous with "type." The most important distinguishing
characteristic of a class is "the set of messages that can be sent."

5. All objects of a particular type can receive the same messages. As discussed below, this
statement is really important. Since an object of type "circle" is also an object of type
"shape," a circle can be guaranteed to accept shape messages. This means that you can
write code to communicate with objects of type form and automatically control anything
that fits the description of a form. This capability is one of impersonation most important
concepts of OOP.

Booch offers an even more succinct description of object:

- An object has state, behavior and identity.

This means that an object can have internal data (which provides state), methods (to
provide a behavior) and each object can be uniquely distinguished from other objects, ie,
each object has a unique memory address .




                                                                        Kenia Álava
The object-oriented approach


Reference is made to the elements in the problem space called "objects" to their
representations in the solution space. The idea is that the program can adapt by itself to
the lingo of the problem by adding new types of objects so that when you read the code
describing the solution, you are reading words that also express the problem. Thus OOP
allows you to describe the problem in terms of the problem rather than in terms of the
computer.

                                Why use classes?
Since a class describes a set of objects having characteristics (data elements) and behavior
(functionality) identical actually a class is a type of data because, for example, a floating
point number also has a set of characteristics and performance . The difference is that the
programmer defines a class to fit a problem rather than force the use of an existing data
type that was designed to represent a storage unit in a machine. You can extend the
programming language by adding new data types specific to suit your needs. The
programming system supports the new classes and provides all combinations of type
providing defined types. Creating abstract data types (classes) is a fundamental concept in
object-oriented programming.

                               What is an object?
Once a class has been defined, you can create as many objects of that class as desired and
these objects can be handled as if the elements of the problem that is being addressed.

But how do you make a object do useful work for the programmer? There must be a way
to make an application in order to do something, such as complete a transaction, draw
something on screen or a switch.




                                                                         Kenia Álava
What is an interface
Also, each object can satisfy only certain requests. Requests can be made to an object are
defined by its interface and is the type that determines the interface. An example with the
representation of a light bulb:




The interface determines the applications that can be done to a certain object, so there
must be a code somewhere to satisfy that request. This, along with the hidden data,
define what it calls the implementation. From the standpoint of procedural programming,
this is not complicated. One type has a method associated with each possible request, and
when a specific request is made to a objesto, this method is called. This process is
summarized by saying that the developer "send a message" (make a request) to an object
and the object knows what to do with this message (it executes the code).

In this example, the name of the type / class is Light, the name of this particular object is lz
Light and applications that can be done to an object light is on, off, or dim glow. It has
created a light object defining a "reference" (lz) for that object and calling new to request
a new object of that type. To send a message to the object, defined the object name and
is related to the application of the message by a point. From the point of view of the user
of a predefined class, that is the ultimate programming objects.

The diagram above follows the format of UML (UnifiedModelingLanguage, Unified
Modeling Language). Each class is represented by a box by typing the name of the guy at
the top, the data members in the intermediate zone and methods (functions of said object
receiving any message sent to the developer that object) in the bottom . Often in these
diagrams only show the name of the class and public method, not including the buffer
zone, as in this case. If you are only interested in the class name, it is not necessary to
include the bottom.




                                                                           Kenia Álava

Mais conteúdo relacionado

Mais procurados

Object oriented architecture in erp
Object  oriented architecture in erpObject  oriented architecture in erp
Object oriented architecture in erp
Preyanshu Saini
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
PAQUIAAIZEL
 
2 lesson 2 object oriented programming in c++
2 lesson 2 object oriented programming in c++2 lesson 2 object oriented programming in c++
2 lesson 2 object oriented programming in c++
Jeff TUYISHIME
 

Mais procurados (20)

Object oriented architecture in erp
Object  oriented architecture in erpObject  oriented architecture in erp
Object oriented architecture in erp
 
01. design pattern
01. design pattern01. design pattern
01. design pattern
 
Object database standards, languages and design
Object database standards, languages and designObject database standards, languages and design
Object database standards, languages and design
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
Encapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistenceEncapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistence
 
Bt8901 objective oriented systems1
Bt8901 objective oriented systems1Bt8901 objective oriented systems1
Bt8901 objective oriented systems1
 
1Introduction to OOAD
1Introduction to OOAD1Introduction to OOAD
1Introduction to OOAD
 
Principles of object oriented programming
Principles of object oriented programmingPrinciples of object oriented programming
Principles of object oriented programming
 
classes & objects introduction
classes & objects introductionclasses & objects introduction
classes & objects introduction
 
Object oriented database
Object oriented databaseObject oriented database
Object oriented database
 
Design Pattern Notes: Nagpur University
Design Pattern Notes: Nagpur UniversityDesign Pattern Notes: Nagpur University
Design Pattern Notes: Nagpur University
 
Object Oriented Approach for Software Development
Object Oriented Approach for Software DevelopmentObject Oriented Approach for Software Development
Object Oriented Approach for Software Development
 
2 lesson 2 object oriented programming in c++
2 lesson 2 object oriented programming in c++2 lesson 2 object oriented programming in c++
2 lesson 2 object oriented programming in c++
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Ooadb
OoadbOoadb
Ooadb
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
ooAD
ooADooAD
ooAD
 
Overview of entity framework by software outsourcing company india
Overview of entity framework by software outsourcing company indiaOverview of entity framework by software outsourcing company india
Overview of entity framework by software outsourcing company india
 
Ooad ppt
Ooad pptOoad ppt
Ooad ppt
 

Semelhante a Class 4

Unit1 jaava
Unit1 jaavaUnit1 jaava
Unit1 jaava
mrecedu
 
Object And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) LanguagesObject And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) Languages
Jessica Deakin
 
Object-Oriented Concepts
Object-Oriented ConceptsObject-Oriented Concepts
Object-Oriented Concepts
Abdalla Mahmoud
 

Semelhante a Class 4 (20)

1 intro
1 intro1 intro
1 intro
 
Chapter1 introduction
Chapter1 introductionChapter1 introduction
Chapter1 introduction
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
 
Java Programming Paradigms Chapter 1
Java Programming Paradigms Chapter 1 Java Programming Paradigms Chapter 1
Java Programming Paradigms Chapter 1
 
Unit1 jaava
Unit1 jaavaUnit1 jaava
Unit1 jaava
 
Class 1 blog
Class 1 blogClass 1 blog
Class 1 blog
 
General OOP concept [by-Digvijay]
General OOP concept [by-Digvijay]General OOP concept [by-Digvijay]
General OOP concept [by-Digvijay]
 
Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2
 
Java pdf
Java   pdfJava   pdf
Java pdf
 
MCA NOTES.pdf
MCA NOTES.pdfMCA NOTES.pdf
MCA NOTES.pdf
 
Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2Class notes(week 2) on basic concepts of oop-2
Class notes(week 2) on basic concepts of oop-2
 
Java chapter 3
Java   chapter 3Java   chapter 3
Java chapter 3
 
Chapter 1- Introduction.ppt
Chapter 1- Introduction.pptChapter 1- Introduction.ppt
Chapter 1- Introduction.ppt
 
Object And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) LanguagesObject And Oriented Programing ( Oop ) Languages
Object And Oriented Programing ( Oop ) Languages
 
Object-Oriented Concepts
Object-Oriented ConceptsObject-Oriented Concepts
Object-Oriented Concepts
 
POP vs OOP Introduction
POP vs OOP IntroductionPOP vs OOP Introduction
POP vs OOP Introduction
 
M.c.a. (sem iv)- java programming
M.c.a. (sem   iv)- java programmingM.c.a. (sem   iv)- java programming
M.c.a. (sem iv)- java programming
 
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptxOBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
 
Oops slide
Oops slide Oops slide
Oops slide
 

Mais de Miguel Mastarreno Macías (20)

Miguel portafolioingles
Miguel portafolioinglesMiguel portafolioingles
Miguel portafolioingles
 
Kenia
KeniaKenia
Kenia
 
Folder aby
Folder abyFolder aby
Folder aby
 
Mata
MataMata
Mata
 
Gisella bravo portafolio
Gisella bravo portafolioGisella bravo portafolio
Gisella bravo portafolio
 
Portafolio kenia original 2 a
Portafolio kenia original 2 aPortafolio kenia original 2 a
Portafolio kenia original 2 a
 
Class 3 2ciclo
Class 3 2cicloClass 3 2ciclo
Class 3 2ciclo
 
Class 1 y 2 2ciclo
Class 1 y 2 2cicloClass 1 y 2 2ciclo
Class 1 y 2 2ciclo
 
Proyecto
ProyectoProyecto
Proyecto
 
Proyecto de ingles traducido
Proyecto de ingles traducidoProyecto de ingles traducido
Proyecto de ingles traducido
 
Class 6
Class 6Class 6
Class 6
 
Class 5
Class 5Class 5
Class 5
 
Class 3
Class 3Class 3
Class 3
 
Class 2
Class 2Class 2
Class 2
 
Class 1
Class 1Class 1
Class 1
 
Kenii
KeniiKenii
Kenii
 
Gissy
GissyGissy
Gissy
 
Aby
AbyAby
Aby
 
Folder
FolderFolder
Folder
 
Gestor proyectocalculo
Gestor proyectocalculoGestor proyectocalculo
Gestor proyectocalculo
 

Class 4

  • 2. The programmer must establish the association between the machine model "solution space" that is where to deploy the solution, such as a computer, and the problem is what you really want to solve "problem space" that is where the problem exists, the business. What is an abstraction? Alan kayresumion the five basic characteristics of Smalltalk for an object, the first object-oriented language that was successful and one of the languages that is based on JAVA. These characteristics represent a pure approach to object-oriented programming. 1. Everything is an object. Think of an object as a variable stores data, allows you "raise requests" asking him to perform operations on itself. In theory, you can take any conceptual component of the problem that is being addressed. 2. A program is a bunch of objects that tell each other what to do by sending messages. To make a solicitude to an object, you must send a message to that object. More specifically, you can think of a message is a request to call a method that belongs to a particular object. 3. Each object has its own memory made up of other objects. Put another way, you can create a new class of Obeto defining a package containing existing objects. Therefore, it may increase the complexity of a program hiding behind the simplicity of the objects. 4. Every object has an associated type. As the saying goes, every object is an instance of a case where "class" synonymous with "type." The most important distinguishing characteristic of a class is "the set of messages that can be sent." 5. All objects of a particular type can receive the same messages. As discussed below, this statement is really important. Since an object of type "circle" is also an object of type "shape," a circle can be guaranteed to accept shape messages. This means that you can write code to communicate with objects of type form and automatically control anything that fits the description of a form. This capability is one of impersonation most important concepts of OOP. Booch offers an even more succinct description of object: - An object has state, behavior and identity. This means that an object can have internal data (which provides state), methods (to provide a behavior) and each object can be uniquely distinguished from other objects, ie, each object has a unique memory address . Kenia Álava
  • 3. The object-oriented approach Reference is made to the elements in the problem space called "objects" to their representations in the solution space. The idea is that the program can adapt by itself to the lingo of the problem by adding new types of objects so that when you read the code describing the solution, you are reading words that also express the problem. Thus OOP allows you to describe the problem in terms of the problem rather than in terms of the computer. Why use classes? Since a class describes a set of objects having characteristics (data elements) and behavior (functionality) identical actually a class is a type of data because, for example, a floating point number also has a set of characteristics and performance . The difference is that the programmer defines a class to fit a problem rather than force the use of an existing data type that was designed to represent a storage unit in a machine. You can extend the programming language by adding new data types specific to suit your needs. The programming system supports the new classes and provides all combinations of type providing defined types. Creating abstract data types (classes) is a fundamental concept in object-oriented programming. What is an object? Once a class has been defined, you can create as many objects of that class as desired and these objects can be handled as if the elements of the problem that is being addressed. But how do you make a object do useful work for the programmer? There must be a way to make an application in order to do something, such as complete a transaction, draw something on screen or a switch. Kenia Álava
  • 4. What is an interface Also, each object can satisfy only certain requests. Requests can be made to an object are defined by its interface and is the type that determines the interface. An example with the representation of a light bulb: The interface determines the applications that can be done to a certain object, so there must be a code somewhere to satisfy that request. This, along with the hidden data, define what it calls the implementation. From the standpoint of procedural programming, this is not complicated. One type has a method associated with each possible request, and when a specific request is made to a objesto, this method is called. This process is summarized by saying that the developer "send a message" (make a request) to an object and the object knows what to do with this message (it executes the code). In this example, the name of the type / class is Light, the name of this particular object is lz Light and applications that can be done to an object light is on, off, or dim glow. It has created a light object defining a "reference" (lz) for that object and calling new to request a new object of that type. To send a message to the object, defined the object name and is related to the application of the message by a point. From the point of view of the user of a predefined class, that is the ultimate programming objects. The diagram above follows the format of UML (UnifiedModelingLanguage, Unified Modeling Language). Each class is represented by a box by typing the name of the guy at the top, the data members in the intermediate zone and methods (functions of said object receiving any message sent to the developer that object) in the bottom . Often in these diagrams only show the name of the class and public method, not including the buffer zone, as in this case. If you are only interested in the class name, it is not necessary to include the bottom. Kenia Álava