KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In C++ there are just objects and classes, where objects are instances of classes. In Python, a class definition (i.e., the body of a class) is called an object. And, the object in C++ is called instance in python. Check this Am I wrong? EDIT : Actually can someone explain with example difference of object vs instance EDIT : In python, everything will inherit from object class & hence everything is an object (i.e object of object class). A Class is also an object (i.e object of object class). Instance is the name used to call the object of any class.(a.k.a c++ object). Please refer this
Tags (comma-separated)
Save Edits
Cancel