matt_mods

object oriented programming

Apr 23rd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. classes:
  2. a class is a starting point for any object,given the object its characteristics
  3. class is a template defining the method and properties for a new object.
  4.  
  5.  
  6. instances:
  7. a new object will be an instants of a class. There can be many instances of a class,each of witch is an object.
  8. For example an employee class can be used to create many instances each of which is an employee object.
  9.  
  10. object:
  11. dragging a new button from the toolbar onto a form create a new instance.
  12.  
  13. function overloading:
  14. function overloading creates multiple functions of the same name with different parameters.
  15.  
  16. polymorphism:
  17. polymorphinsm means code operations or objects can behave in some situations differently by function overloading.
  18.  
  19. inheritance:
  20. Inheritance is a big port of OOP, allowing a new class inherited from an existing classinsted if writing completely new data members and memebers.
  21.  
  22. The existing class is called the base class and the new class is a dervided class.
  23.  
  24. re-usablity:
  25. a base class defines the core
  26.  
  27. encapsulation:
  28. data members is kept in the class, and they can not be changed in the base class
  29.  
  30. data binding:
  31. this keeps the data stored in one place through encapsulating.
Add Comment
Please, Sign In to add comment