Learning Object-Oriented Programming

Learning Object-Oriented Programming

English | 2015 | ISBN: 978-1-78528-963-7 | 280 Pages | PDF, EPUB, MOBI | 10 MB

Book Description
Learning Object-Oriented Programming is an easy-to-follow guide full of hands-on examples of solutions to common problems with object-oriented code in Python, JavaScript, and C#. It starts by helping you to recognize objects from real-life scenarios and demonstrates that working with them makes it simpler to write code that is easy to understand and reuse. You will learn to protect and hide data with the data encapsulation features of Python, JavaScript, and C#.
You will explore how to maximize code reuse by writing code capable of working with objects of different types, and discover the advantage of duck typing in both Python and JavaScript, while you work with interfaces and generics in C#. With a fair understanding of interfaces, multiple inheritance, and composition, you will move on to refactor existing code and to organize your source for easy maintenance and extension.
Learning Object-Oriented Programming will help you to make better, stronger, and reusable code.
What you will learn

  • Generate instances in three programming languages: Python, JavaScript, and C#
  • Customize constructors and destructors
  • Work with a combination of access modifiers, prefixes, properties, fields, attributes, and local variables to encapsulate and hide data
  • Take advantage of specialization and the possibility to overload or override members
  • Create reusable and easier to maintain code
  • Use interfaces, generics, and multiple inheritance when available
Homepage