What is the difference between class and an object?

by kody.wyman , in category: Technology , 10 months ago

What is the difference between class and an object?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by kamryn.gulgowski , 10 months ago

@kody.wyman A class is a definition and object is a prototype of that definition.An object contains states and behaviors and a class is a template of an object. An object is an instance of a class and it is working model of a definition that we can call a class.