Home > Common Problem > What is an instance of a class called in object oriented approach?

What is an instance of a class called in object oriented approach?

藏色散人
Release: 2020-04-27 16:24:36
Original
9591 people have browsed it

What is an instance of a class called in object oriented approach?

What is an instance of a class called in object-oriented approach?

In object-oriented approach, instances of classes are called objects.

Basic concepts

The meaning of object refers to a specific thing, that is, something that can be seen and touched in real life. In object-oriented programming, an object refers to a certain component of a computer system. In object-oriented programming, objects contain two meanings, one of which is data and the other is action. Objects are a combination of data and actions. The object can not only perform operations, but also record the results of operations in a timely manner.

Methods refer to the operations that an object can perform. Methods also have another name, called functions. Methods are defined functions in a class, and their specific function is to describe operations on objects.

Inheritance is simply a hierarchical model that can be reused. The upper levels of the hierarchy are general, but the lower levels are specific. During the inheritance process, a class can inherit some methods and variables from the top-level part. In addition to being inherited, classes can also be modified or added. In this way, work efficiency can be effectively improved. Here is an example. When class X inherits class Y, class X is a derived class, and class Y belongs to a base class. Inheritance is a process from general deduction to special, which can reduce the redundant content of knowledge representation, and the maintenance and modification of the knowledge base are very convenient. More conducive to deriving complex systems.

Related introduction:

Object Oriented (Object Oriented) is a software development method. Object-oriented concepts and applications have transcended programming and software development and expanded to fields such as database systems, interactive interfaces, application structures, application platforms, distributed systems, network management structures, CAD technology, artificial intelligence and other fields. Object-oriented is a method of understanding and abstracting the real world. It is the product of the development of computer programming technology to a certain stage.

Object-oriented is relative to process-oriented. The object-oriented method organizes related data and methods into a whole and treats the system from a higher level, which is closer to the nature of things. operating mode.

The above is the detailed content of What is an instance of a class called in object oriented approach?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template