employer cover photo
employer logo
employer logo

Summitworks Technologies

Is this your company?

Summitworks Technologies Interview Question

What is the relationship between a class and an object?

Interview Answer

Anonymous

Jul 9, 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.