Learning object-oriented programming explore and crack the OOP code in Python, JavaScript, and C#

If you're a Python, JavaScript, or C# developer and want to learn the basics of object-oriented programming with real-world examples, then this book is for you.

Detalles Bibliográficos
Otros Autores: Hillar, Gastón C., author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing 2015.
Edición:1st edition
Colección:Community experience distilled.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629857806719
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Objects Everywhere; Recognizing objects from nouns; Generating blueprints for objects; Recognizing attributes/fields; Recognizing actions from verbs - methods; Organizing the blueprints - classes; Object-oriented approaches in Python, JavaScript, and C#; Summary; Chapter 2: Classes and Instances; Understanding classes and instances; Understanding constructors and destructors; Declaring classes in Python; Customizing constructors in Python
  • Customizing destructors in PythonCreating instances of classes in Python; Declaring classes in C#; Customizing constructors in C#; Customizing destructors in C#; Creating instances of classes in C#; Understanding that functions are objects in JavaScript; Working with constructor functions in JavaScript; Creating instances in JavaScript; Summary; Chapter 3: Encapsulation of Data; Understanding the different members of a class; Protecting and hiding data; Working with properties; Understanding the difference between mutability and immutability; Encapsulating data in Python
  • Adding attributes to a classHiding data in Python using prefixes; Using property getters and setters in Python; Using methods to add behaviors to classes in Python; Encapsulating data in C#; Adding fields to a class ; Using access modifiers; Using property getters and setters in C#; Working with auto-implemented properties ; Using methods to add behaviors to classes in C#; Encapsulating data in JavaScript; Adding properties to a constructor function; Hiding data in JavaScript with local variables; Using property getters and setters in JavaScript
  • Using methods to add behaviors to constructor functionsSummary; Chapter 4: Inheritance and Specialization; Using classes to abstract behavior; Understanding inheritance; Understanding method overloading and overriding; Understanding operator overloading; Taking advantage of polymorphism; Working with simple inheritance in Python; Creating classes that specialize behavior in Python; Using simple inheritance in Python; Overriding methods in Python; Overloading operators in Python; Understanding polymorphism in Python; Working with simple inheritance in C#
  • Creating classes that specialize behavior in C#Using simple inheritance in C#; Overloading and overriding methods in C#; Overloading operators in C#; Understanding polymorphism in C#; Working with the prototype-based inheritance in JavaScript; Creating objects that specialize behavior in JavaScript; Using the prototype-based inheritance in JavaScript; Overriding methods in JavaScript; Overloading operators in JavaScript; Understanding polymorphism in JavaScript; Summary; Chapter 5: Interfaces, Multiple Inheritance, and Composition
  • Understanding the requirement to work with multiple base classes