Pergunta de entrevista da empresa FDM Group

Difference between class and objects, use an example to differentiate

Resposta da entrevista

Sigiloso

17 de out. de 2018

A class is a blueprint if the variables and behaviours of an object An object is an instance of a class E.g a class holds the bar colour for a dog and a method bark that describe how the dog barks A dog is a single instance of the class Dog and has a colour and barks