What is the difference between a class and a module? | Sololearn: Learn to code for FREE!

+1

What is the difference between a class and a module?

I'm either making a class or a module called D.U.C.K (guess what game it's from) and I can't decide which I should do or if they are the same.

11/2/2019 3:14:36 AM

Swordmaster

3 Answers

New Answer

+3

Modules can be imported I'm guessing.

+2

classes can be bundled in modules and by importing the module you have access to its classes

0

Ok, I have the answer now, so now you have to guess what game the D.U.C.K is from!