Advertisement
Guest User

Untitled

a guest
Jan 14th, 2015
850
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. Unit 15 Object Orientated Programming
  2. P1: Explain the key features of object oriented programs
  3. M1: Explain the importance of encapsulation, polymorphism and inheritance on object oriented programming
  4. In this task I am going to be explaining the key features of object orientated programming as well as explaining the importance of encapsulation, polymorphism and inheritance on object orientated programming. The feature of object orientated programming which I am going to be talking about include being:
  5. • Reusable unit of programming logic
  6. • Identification of objects
  7. • Data abstraction
  8. • Modularity
  9. • Classification
  10. • Inheritance
  11. • Polymorphism
  12. • Encapsulation
  13. • Classes
  14. • Methods
  15. • Message passing
  16. Reusable unit of programming logic
  17. This is when class of codes are used again and again for similar which need to be created. This allows the programmer to save the same type of code and also the design of the software so that it is easier and quicker for the programmer to create similar software, this can also be really time consuming for the programmer.
  18. Identification of objects
  19. This feature in object orientated programming describes what the object is for example what the product is. This is one of the most important features of object orientated programming as it shows what the object will contain and what it attributes will be.
  20. Data abstraction
  21. This feature in object orientated programming allows the coding or data to be protected against unauthorised access, this is because the codes will not be used in every stage of the programming which then protects it and secures them in a safe location so that it will not be lost in the later stages of the programming.
  22.  
  23. Modularity
  24. This is a really beneficial feature of object orientated programming, because this allows coding to be performed on two separate objects for example if the software contains different objects then this feature will allow the coding to be performed in different objects so that you don’t overwrite the pervious objects.
  25. Classification
  26. This is when the objects are being placed in categories, these categories can be set on attributes which the object has. This can be set by what the base object is and the smaller objects within the software.
  27. Inheritance
  28. This feature allows the programmer to reuse codes for example if the programmer wants to create same programme for another client then the programmer will be able to use the same codes for the other client. For the programmer to implement inheritance the word “is” or “a” should be used in the coding.
  29. The importance of this feature is that it will allow the user to implement the same codes over and over again for other clients for example if the same client has asked for a similar programme then the programmer will be able to copy the codes over to the new programme, this will also safe time for the programmer. These are the most important aspects of inheritance.
  30. Polymorphisms
  31. This feature allows one object to fill the role of another object for instance if they were three objects in one programme then object A will be able to duplicate the same message which is being used in object B and object C, this will be known as polymorphism. This programme allows the same message which it disrepute’s for different objects within programming.
  32. The importance of this feature is that it allows the programme to be backed up, this is because this feature duplicates the codes to every object within the programming. This feature also allows the programmer to change the behaviour of different objects, this can be implemented while the software is being tested or running.
  33. Encapsulation
  34. This feature allows the programmer to restrict access by making it secure so that the data doesn’t get manipulated, this will reduce the chances of the coding being lost. This also reduce the risk of the objects being lost for instance encapsulation can be known as a data protection software which restricts access and protects everything within.
  35. The important feature of this is that it allows the programme to be conducted safely for example if someone wanted to access your programme then they will need your authority in order to access for instance they will require password. This is the most important aspect of this feature in object orientated programming.
  36. Classes
  37. This feature allows the programmer to make the blueprint of the programme by creating classes of the programme for example this will state the behaviour or the state of the programme or object. This will show what the programme or the object is going to be or what it will be like.
  38. Message passing
  39. This is used to pass message around within the objects so that the objects can communicate to one and other for instance if the user enters the account details then the objects will be able to interact to one another to see if the account details are correct or not the interaction will take place between the two objects which are related to this scenario.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement