--- id: 69ae96daa9e6da4eb0d5f7f4 title: Getting Started with Classes challengeType: 11 videoId: _066KcCuaYM dashedName: getting-started-with-classes --- # --description-- In this video, you will learn the basics of OOP by getting started working with classes in Python. # --questions-- ## --text-- Which of the following is the correct way to add a method to a class? ## --answers-- ```py class Dog: set bark(self): print("Woof!") ``` --- ```py class Dog: def bark(self): print("Woof!") ``` --- ```py class Dog: method bark(self): print("Woof!") ``` --- ```py class Dog: def bark: print("Woof!") ``` ## --video-solution-- 2