OOP what ah?

Users questions:
Experts answer:OOP = ObjectOrientedProgramming, = object-oriented programming object (Object): contains a certain data structure and state entities. Operation (Operation): the role of the object's behavior, such as access and Handling object state. Package (Encapsulation): the definition of objects and operations, only the abstract interfaces, and hide their implementation. Ada83 has been to support the above three characteristics, it is called object-based (oriented-based) language; but Object-oriented programming After ten years development, Ada95 added to the above factors do not support the following two elements Ada83: Inheritance (Inheritance): existing types through inheritance nature, create new data types, without affecting the original a data type. Polymorphism (P olymorphism): determine the type of data collection in various types of difference, so that programs can follow to write to their common characteristics. The demand for new features is the three reports [Dod1990] pointed out, the specific see AdaRantinale the PartTwo-4Ob jectOrientedProgramming ** 4.1BackgroundandConcepts, you can better understand the inheritance and polymorphism. OOP inheritance theory, is an imitation of human thinking method, object classification, such as: car, bus These two data types are inherited from the data type vehicle, and they as a vehicle of a class of naturally inherited the vehicle's features, but also has its own unique characteristics; the wheel is not the vehicle of a class, only one vehicle Component in, so not inherited from the vehicle. Similarly, vehicle there are some operations, such as start, reverse, car and bus are also inherited, if necessary, can also add their own unique operations, such as drive_at_200mph . But in the actual process, people tend to ignore the object-oriented content, even those beyond the C + + language around a few years, only to spend the object-oriented syntax, without the formation of object-oriented way of thinking.
  • This information provided by the users.Thanks!