Vidyalelo
Python · Q23

Classes and Objects in Python

Programming · Python · question 23

Q23

How can you access a class variable in Python?

A.
Using the class name and dot notation
Answer
B.
Using the self keyword
C.
Using the cls keyword
D.
Using the object keyword

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board