![]() For example some books will be misplaced, so it's hard to find them again. ![]() Even though this is great for the user, it might lead to serious problems in the long run. It's up to the user to find the books and to put them back at the right shelf. Imperative languages like C could be seen as open-access shelving libraries. In this case the books are openly displayed. "Open" means open to all users of the library not only specially trained staff. Another way of running a library is open-access shelving, also known as "open shelves". In this system, trained staff brings the books and other publications to the users on demand. You can use a "closed access" method that is the stock is not displayed on open shelves. Generally, there are two opposed ways of keeping the stock in a library. Each of these contain an organized collection of books, periodicals, newspapers, audiobooks, films and so on. If it helps, you can imagine the libraries in Paris, Berlin, Ottawa or Toronto* as well. Let's think about a huge one, like the "British Library" in London or the "New York Public Library" in New York. For this purpose, we would like to draw your attention to a public library. You will learn to know the four major principles of object-orientation and the way Python deals with them in the next section of this tutorial on object-oriented programming:īefore we start the section about the way OOP is used in Python, we want to give you a general idea about object-oriented programming. A major breakthrough for object-oriented programming came with the programming language Smalltalk in the 1970s. As the name implies, Simula 67 was introduced in the year 1967. The first programming language to use objects was Simula 67. Though many computer scientists and programmers consider OOP to be a modern programming paradigm, the roots go back to 1960s. you can write powerful and efficient programs without it as well. OOP is one of the most powerful tools of Python, but nevertheless you don't have to use it, i.e. We will provide an introduction into the principles of object oriented programming in general and into the specifics of the OOP approach of Python. In this chapter, we will catch up on what has been missing so far. ![]() We used objects and methods from classes without properly explaining their OOP background. We skipped OOP, because we are convinced that it is easier and more fun to start learning Python without having to know about all the details of object-oriented programming.Įven though we have avoided OOP, it has nevertheless always been present in the exercises and examples of our course. Though Python is an object-oriented language without fuss or quibble, we have so far intentionally avoided the treatment of object-oriented programming (OOP) in the previous chapters of our Python tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |