Back to Freecodecamp

Task 68

curriculum/challenges/english/blocks/learn-how-to-use-basic-programming-vocabulary-in-conversations/662f2e4b96f60636d44eb7db.md

latest2.4 KB
Original Source
<!-- (Audio) Tom: I understand that there are classes and methods, but I've never used them in my code. -->

--description--

A class is a fundamental concept, especially in object-oriented programming. It acts like a blueprint for creating objects. A class defines the properties (attributes) and behaviors (methods) that the objects created from the class can have.

For example, a Person class might have properties like name and age, and behaviors like talk() and walk().

A method is a function that is associated with an object. Methods define the behaviors or actions that an object created from a class can perform. They are like instructions that tell the object what to do.

For instance, in a Calculator class, a method might be add(number1, number2), which adds two numbers together.

--fillInTheBlank--

--sentence--

I understand that BLANK are BLANK and BLANK, but BLANK BLANK used them in my code.

--blanks--

there

--feedback--

This word is used here to introduce the existence or presence of something.


classes

--feedback--

They are blueprints in object-oriented programming from which objects are created.


methods

--feedback--

They are functions associated with a class that define actions the objects of the class can perform.


I've

--feedback--

This is a contraction for I have, used here to describe personal experience with the subject.


never

--feedback--

It is used to indicate that something has not happened at any time in the past.

--scene--

json
{
  "setup": {
    "background": "company2-breakroom.png",
    "characters": [
      {
        "character": "Tom",
        "position": {
          "x": 50,
          "y": 15,
          "z": 1.2
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "5.1-3.mp3",
      "startTime": 1,
      "startTimestamp": 12.8,
      "finishTimestamp": 17.12
    }
  },
  "commands": [
    {
      "character": "Tom",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Tom",
      "startTime": 1,
      "finishTime": 5.32,
      "dialogue": {
        "text": "I understand that there are classes and methods, but I've never used them in my code.",
        "align": "center"
      }
    },
    {
      "character": "Tom",
      "opacity": 0,
      "startTime": 5.82
    }
  ]
}