1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pentagon [3]
4 years ago
5

What is the difference between a class and an object?

Computers and Technology
1 answer:
sweet-ann [11.9K]4 years ago
8 0

Explanation:

The difference between a class and an object is very simple a class is a template for objects.A class contains objects,methods,constructors,destructors. While an object is a member  of the class or an instance of the class. for ex:-

#include<iostream>

using namespace std;

class car

{

    public:

  string color;

  int numgears;

  int engine capacity_cc;

  bool ispetrol;

car(string color,int numgears,int engine capacity_cc,bool ispetrol)

{

  this->color=color;

  this->numgears=numgears;

  this->capacity_cc=capacity_cc;

  this->ispetrol=ispetrol;

}

};

int main()

{

car volvo = new car("red",6,2500,false);

return 0;

}

In the example we have class car and it's object is volvo.

You might be interested in
A compressed audio file format developed by the Moving Picture Experts Group is called
8_murik_8 [283]

Answer:

The appropriate response is "MP3 file".

Explanation:

  • MPEG seems to be an association of ISO as well as IEC international organizations that make recommendations for media encryption, comprising processing of sound, illustrations and functional genomics, and file configurations for numerous technologies.
  • MP3 seems to be a sound file stored in something like a compression digital audio created through MPEG consisting utilizes "Layer three" audio processing.
5 0
3 years ago
The spreadsheet ends after you reach column Z and row 99. True or false
Mandarinka [93]

Answer:

False

Explanation:

Excel Spreadsheet 2010 and above have 2^14 columns i.e. 16384 columns and 2^20 rows i.e. 1048576 rows.

First 26 columns are from A to Z and then the next column will user another Digit and start with A, so the 27th column will be AA.

26th column = Z

27th column = AA

28th column = AB

etc.

8 0
3 years ago
What allow you to write alphas on a computer keyboard
lions [1.4K]

Answer:

"To create any of these Greek letters using the Alt codes, simply press the "Alt" key while simultaneously typing the listed number. For example, to create the Greek letter Alpha (α), press the "Alt" key and type 224 using the keypad at the right side of your keyboard." - GOOGLE

5 0
3 years ago
A label control may be added to a form by double-clicking on the Label control icon in the ________ window.
Ierofanga [76]

Answer:

ToolBox.

Explanation:

A label control may be added to a form by double-clicking on the Label control icon in the ToolBox window.

5 0
3 years ago
Whats a field in databases?
SVETLANKA909090 [29]
A field is a single attribute of an entity, object or event.
3 0
3 years ago
Other questions:
  • If you have a list of words that you wish to make into a bulleted list, you must first highlight or ________ the words with your
    14·1 answer
  • Why is the DNS service included in Windows Server 2012 R2 integrated with DHCP service?
    6·1 answer
  • Which are the two alternatives for pasting copied data in a target cell or a group of cells ?
    13·2 answers
  • Who has access to the source code of proprietary software?
    15·2 answers
  • Which of the following describes the phishing method of information security crime?
    14·2 answers
  • You work part time at a computer repair store. You are in the process of building a new computer system. The customer wants a mo
    6·1 answer
  • If an additional term relates to payment, quality, quantity, price, time, and place of delivery, the CISG considers the added te
    12·1 answer
  • Most of the revenue that magazine companies generate comes from?
    8·2 answers
  • How does design influence the product's function?
    5·1 answer
  • In a non-price rationing system, consumers receive goods and services first-come, first served. Give me an example of a time whe
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!