Classes and methods | 7/34 | UPV

Описание к видео Classes and methods | 7/34 | UPV

Título: Classes and methods

Descripción: In this video object-oriented programming concepts are explored, specifically focusing on creating classes to define new types and methods to perform actions on those types. A class is a template for creating objects, with its name conventionally capitalized in camel case.

Methods are functions that belong to a class, with the first parameter being "self" which represents the object itself. Methods can be used to access attributes of an object, following a naming convention called snake case. The constructor method, denoted by "__init__", is called implicitly when creating a new object and is used to initialize its attributes.

The video provides examples of class definitions, method declarations, and instance variables, which are attributes of the class accessed using the "self" parameter. It also explains the difference between parameters, local variables, and instance variables in methods.


Autor/a: GALINDO JIMENEZ CARLOS SANTIAGO

Curso: Este vídeo es el 7/34 del curso SEAMIC Computer Science II.    • SEAMIC Computer Science II  
Curso: Este vídeo es el 69/120 del curso SEAMIC (Bachelor's Degree in Systems Engineering and Management for Innovation Challenges).    • SEAMIC (Bachelor's Degree in Systems ...  


Universitat Politècnica de València UPV: https://www.upv.es
Más vídeos en:    / valenciaupv  
Accede a nuestros MOOC: https://upvx.es

#python #SEAMIC #IDE #CS2

Комментарии

Информация по комментариям в разработке