Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Watch
Unwatch
Watching
Releases Only
Ignoring
3
Star
48
Fork
24
DreamCoders
/
CoderGuide
Code
Issues
1169
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
Java中面向对象和面向过程的区别
Backlog
#IAJKRL
陌生人
owner
Opened this issue
2024-08-13 10:04
<h4><span style="color: rgb(51, 51, 51);">面向过程: </span></h4><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">优点:性能比面向对象高,因为类调用时需要实例化,开销比较大,比较消耗资源</span><span style="color: rgb(51, 51, 51);">;</span><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">比如单片机、嵌入式开发、</span><span style="color: rgb(51, 51, 51);">Linux/Unix</span><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">等一般采用面向过程开发,能是最重要的因素。 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">缺点:没有面向对象易维护、易复用、易扩展 。</span></p><h4><span style="color: rgb(51, 51, 51);">面向对象: </span></h4><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">优点:易维护、易复用、易扩展,由于面向对象有封装、继承、多态性的特性,可以设计出低耦合的系统,使系统更加灵活、更加易于维护 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">缺点:性能比面向过程低 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">面向过程是具体化的,流程化的,解决一个问题,你需要一步一步的分析,一步一步的实现。</span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">面向对象是模型化的,你只需抽象出一个类,这是一个封闭的盒子,在这里你拥有数据也拥有解决问题的方法。需要什么功能直接使用就可以了,不必去一步一步的实现,至于这个功能是如何实现的,管我们什么事?我们会用就可以了。 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">面向对象的底层其实还是面向过程,把面向过程抽象成类,然后封装,方便我们使用的就是面向对象了。 </span></p>
<h4><span style="color: rgb(51, 51, 51);">面向过程: </span></h4><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">优点:性能比面向对象高,因为类调用时需要实例化,开销比较大,比较消耗资源</span><span style="color: rgb(51, 51, 51);">;</span><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">比如单片机、嵌入式开发、</span><span style="color: rgb(51, 51, 51);">Linux/Unix</span><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">等一般采用面向过程开发,能是最重要的因素。 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">缺点:没有面向对象易维护、易复用、易扩展 。</span></p><h4><span style="color: rgb(51, 51, 51);">面向对象: </span></h4><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">优点:易维护、易复用、易扩展,由于面向对象有封装、继承、多态性的特性,可以设计出低耦合的系统,使系统更加灵活、更加易于维护 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">缺点:性能比面向过程低 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">面向过程是具体化的,流程化的,解决一个问题,你需要一步一步的分析,一步一步的实现。</span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">面向对象是模型化的,你只需抽象出一个类,这是一个封闭的盒子,在这里你拥有数据也拥有解决问题的方法。需要什么功能直接使用就可以了,不必去一步一步的实现,至于这个功能是如何实现的,管我们什么事?我们会用就可以了。 </span></p><p><span style="color: rgb(51, 51, 51); font-family: 微软雅黑;">面向对象的底层其实还是面向过程,把面向过程抽象成类,然后封装,方便我们使用的就是面向对象了。 </span></p>
Comments (
0
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Java
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
1
https://gitee.com/DreamCoders/CoderGuide.git
git@gitee.com:DreamCoders/CoderGuide.git
DreamCoders
CoderGuide
CoderGuide
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register