أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
define not only the data type of a data structure, but also the types of operations that can be applied.a programming methodology based on objects, instead of just functions and procedures. These objects are organized into classes, which allow individual objects to be group together. Most modern programming languages including Java, and PHP, are object-oriented languages, and many older programming languages now have object-oriented versions. Each object has a structure similar to other objects in the class, but can be assigned individual characteristics. An object can also call functions, or methods, specific to that object. For example, the source code of a video game may include a class that defines the structure of characters in the game.
Encapsulation
Abstraction
Inheritance
Objection Oriented Programming language has properties
Encapsulation Enforces Modularity:
Encapsulation refers to the creation of self-contained modules that bind processing functions to the data. These user-defined data types are called "classes," and one instance of a class is an "object."
Inheritance Passes "Knowledge" DownClasses are created in hierarchies, and inheritance allows the structure and methods in one class to be passed down the hierarchy. That means less programming is required when adding functions to complex systems.
Polymorphism Takes any Shape Object-oriented programming allows procedures about objects to be created whose exact type is not known until runtime. For example, a screen cursor may change its shape from an arrow to a line depending on the program mode.
Answer :