answersLogoWhite

0

classes are user defined data types and behaves like built in types of programming language.when we define a class,we declare its exact form and nature,we do this by specifying the data it contains and the code that operates on data,most real world classes contain both.a class code defines the interface to its data.

once you define a class it becomes a template for an object.by using this template we can create any number of objects.so object is an instance of a class.objects are the basic runtime entities in an object oriented system,they may represent a person,a place, a bank account,a table of data that the program may handle.

User Avatar

Gudrun Collier

Lvl 10
3y ago

What else can I help you with?

Related Questions

Why do we have the articles?

One reason is to distinguish between a general object and a specific one. For a specific object it would need to be identified earlier.


What difference between package class and object?

A package is a grouping of similar classes. A class is a blue print for making an object. An object is, well, an object.


What is the distinguish between?

how can you distinguish between them


Distinguish between the Classes and Objects?

A Class is a template from which Objects are created, in much the same way as a plan of a building is a template from which a building is created... just as the building plan is a piece of paper and not a building, so a Class is not an Object. The code for a Class describes the way in which an Object should behave when particular methods are invoked.


Which object classes are created when Active Directory is installed?

object classes and attributes


Can you tell if an object has a positive or negative charge with a electroscope?

Yes, an electroscope can determine if an object has a charge, but it cannot distinguish between a positive or negative charge. If the object causes the electroscope's leaves to diverge, it indicates the presence of a charge on the object. Further experiments or additional methods are required to determine the polarity of the charge.


What is the difference between magnification resolution and contrast?

Magnification refers to the degree to which an object appears larger under a microscope. Resolution is the ability of a microscope to distinguish between two closely spaced objects. Contrast is the difference in intensity between the object and its background, which helps to make the object stand out.


Distinguish between accounting and book keeping?

distinguish between book keeping and accounting


What is the mass of an object that weighs one gram?

The question cannot be answered. If you are smart enough to distinguish between mass and weight, you should know that the weight of an object is not measured in grams but in Newtons.


What is the difference between classes and object in C?

An object is an INSTANCE of a class. Human is a class, while YOU are a person, an instance of Human class, but YOU do not represent the entire human class. Or, a class provides the abstraction, and an object is a typical example of that abstraction. Classes provide a blue print to build a real instance of an object.


Define and distinguish between entries on the books and entries on the workpapers and explain why such an entries on the books and on the workpapers are required in the consolidation process?

what is distinguish between bookkeeping and accounting? what is distinguish between bookkeeping and accounting? what is distinguish between bookkeeping and accounting?


What is associated object?

An associated object is an object that is connected or related to another object in a system. This connection allows for interactions and behaviors between the two objects, often resulting in changes in one object based on the actions of the other. For example, in object-oriented programming, associated objects can be used to represent relationships between classes.