开发者

What is a Class in python, what does it do, why is it needed? [duplicate]

This question already has answers here: 开发者_如何转开发 Closed 12 years ago.

Possible Duplicate:

Do I correctly understand what a class is?

Before you rant and rage and scream at me, understand that I tried searching everywhere, from google to this very site on what exactly a class in python is. I have found definitions of sorts, but have never been able to understand them fully. So here's the question. What is a class in python, what does it do, and why is it used?


Class (in any language) basically help in implementing OOPS. By Following these principles, it becomes easier to maintain code & make changes etc.

I guess you start off by reading what OOPS is & then come back to Python.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜