Pergunta de entrevista da empresa Summitworks Technologies

What is the relationship between a class and an object?

Resposta da entrevista

Sigiloso

9 de jul. de 2016

A class acts as a blue-print that defines the properties, states, and behaviors that are common to a number of objects. An object is an instance of the class. For example, you have a class called Vehicle and Car is the object of that class. You can create any number of objects for the class named Vehicle, such as Van, Truck, and Auto.