answersLogoWhite

0

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.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Difference between links and association in object orinted analysis and design?

link is related to objects whereas association is related to classes


Can you use objects in class level declaration?

Objects are classes... It's the most abstract type of data.


What is simple inheritance?

In object-oriented programming (OOP), inheritance is a way to reuse code of existing objects, or to establish a subtype from an existing object, or both, depending upon programming language support.In classical inheritance where objects are defined by classes, classes can inherit attributes and behavior from pre-existing classes called base classes, superclasses, parent classes or ancestor classes. The resulting classes are known as derived classes, subclasses or child classes.The relationships of classes through inheritance gives rise to a hierarchy. In prototype-based programming, objects can be defined directly from other objects without the need to define any classes, in which case this feature is called differential inheritance.The inheritance concept was invented in 1968 for Simula.


Can you explain in which scenario the primitive types are used as objects?

It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an objectIt is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an object


What is c plus plus called object oriented programming language?

C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.C++ is an extension of C; object-oriented capabilities - basically, the possibility of defining classes and of creating objects based on those classes - have been added to the original C.

Related Questions

What do you call something that can distinguish two objects near by?

A sensor or a proximity sensor is typically used to detect and distinguish between objects located nearby.


What is the ability to distinguish two nearby objects called?

Resolving power.


The ability to distinguish between two nearby objects is called?

Resolving power.


What is the ability to distinguish between two nearby objects?

Resolving power.


Can you provide an example of a situation where it is necessary to distinguish between identical objects?

One example of a situation where it is necessary to distinguish between identical objects is in a forensic investigation. For instance, in a crime scene where multiple fingerprints or DNA samples are found, it is crucial to accurately identify and differentiate between these identical objects to determine the individuals involved in the crime.


The ability to distinguish between two objects in close proximity is termed A reflection B resolution C rarefaction D acoustical impedance?

B resolution. Resolution refers to the ability to distinguish between two closely spaced objects or details in an image or signal.


What is the ability to distinguish two nearby objects?

Resolving power.


What is the distinguish between?

how can you distinguish between them


What is difference between links and association?

links are associated with objects and associations are associated with classes.


When using objects?

objects are used to represent classes......


Distinguish between accounting and book keeping?

distinguish between book keeping and accounting


What is Difference between C structers and classes?

through classes we can create objects and we can implemented businessmathods. in case of structres we can create streuctre variables but not methods this is the major difference