关于OOP的问题 [英] Questions Regarding OOPs

查看:127
本文介绍了关于OOP的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一些与OOP有关的问题,我读了很多文章,但仍然感到困惑。请提供说明而不是任何链接。



1)。继承的目的是什么?为什么要使用继承?

2)。抽象的目的是什么?

3)。抽象的目的是什么?

4)。什么是设计模式?为什么使用设计模式?

解决方案

Quote:

1)。继承的目的是什么?为什么使用继承?

代码重用。







引用:

2)。抽象的目的是什么?

3)。抽象的目的是什么?

您是在询问抽象还是迭代? :-)

'Abstraction'是任何领域的强大工具。您可以在 Wikipedia 页面中找到计算机科学中抽象含义的一个很好的解释:抽象(计算机科学) [ ^ ]。







引用:
4)。什么是设计模式?为什么使用设计模式?

再次, Wikipedia 帮助:软件设计模式 [ ^ ]。你使用一种设计模式,因为它是一个现成的,可靠的解决问题的方法。

请注意,对设计模式也有一些批评。


你在做一些简单的编程练习时,可以通过编写一些关于编程和阅读的书来回答这个问题。



OOP主要是一个单一的整体概念,只能通过询问来学习一些随意的问题。即使你得到答案,也只是浪费时间,因为这些答案只有在揭示与其他OOP概念的关系时才有价值。 OOP应该作为一个单独的主题学习,或者根本不学习。



-SA


这里是解释所有OOPS概念的链接,例如



http://www.aspdotnet-suresh.com/2010/04/introduction-to-object-oriented.html





http:// msdn。 microsoft.com/en-us/library/vstudio/dd460654.aspx



希望这会有所帮助...

happy编码:


I want to ask some questions related to OOP,I have read many articles but still confused. Kindly provide description instead of any Link.

1). What is the purpose of Inheritance?Why using Inheritance?
2). What is the purpose of Abstraction?
3). What is the purpose of Abstraction?
4). What is design pattern? Why using design pattern?

解决方案

Quote:

1). What is the purpose of Inheritance? Why using Inheritance?

Code re-use.



Quote:

2). What is the purpose of Abstraction?
3). What is the purpose of Abstraction?

Are you asking about 'Abstraction' or 'Iteration'? :-)
'Abstraction' is a powerful tool in any field. You may find a nice explanation of 'abstraction' meaning in computer science in this Wikipedia page: Abstraction (computer science)[^].



Quote:

4). What is design pattern? Why using design pattern?

Again, Wikipedia helps: Software design pattern[^]. You use a design pattern because it is a ready-made, robust solution to a problem.
Please note there is also some criticism on design patterns.


You can answer this questions by taking some book on programming and reading it while doing some simple programming exercises.

OOP is mostly a single holistic conception which cannot be learned by asking just a few casual questions. Even if you got the answers, it would be an absolute waste of time, as such answers only have values when the relationship with other OOP concepts is revealed. OOP should be learned as one single topic, or not learned at all.

—SA


Hi,here is the link explaining all the concept of OOPS with example

http://www.aspdotnet-suresh.com/2010/04/introduction-to-object-oriented.html


http://msdn.microsoft.com/en-us/library/vstudio/dd460654.aspx

hope this helps...
happy coding :


这篇关于关于OOP的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆