What is different between class and object?



What is different between class and object?..

Answer / Ranjana Kumari

A class in Python is a blueprint or template that defines the structure of an object. It contains functions (methods) and variables (attributes). An object is an instance of a class, created by calling the class name followed by parentheses. Each object has its own unique attributes and methods, and it inherits characteristics from its class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How will you use python to read a random line from a file?

1 Answers  


Why python is fast?

1 Answers  


Who created python?

1 Answers  


Is python free or paid?

1 Answers  


Explain the use of with statement?

1 Answers  


What is the difference between del() and remove() methods of the list?

1 Answers  


List out the different types of inheritance available in python?

1 Answers  


What tuple means?

1 Answers  


Can dictionary have a duplicate keys ?

1 Answers  


Is there a switch..case statement in python?

1 Answers  


How do I run Apache in Python?

1 Answers  


What is meant by r strip() in python?

1 Answers  


Categories