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]
3 years ago
12

Using C++, Write a full class definition for a class named Acc1, containing no constructors, functions, or data members (i.e., a

totally empty class). (Note, the last character of the classname is "one" not "ell".)
Computers and Technology
2 answers:
Flauer [41]3 years ago
5 0

In C++, the class without constructors, functions or data members is known as empty class. A constructor is a member function of the class that initializes the objects of the class. The constructor is automatically called when object is created.

A function of a class is similar to any other variable that has its definition within the class.

Further Explanation:

Code: Following is the C++ code to create a class named as Acc1 with no constructors, functions or data members i.e. empty class.

//header file for input and output

#include<iostream>

using namespace std;

class Acc1{

};

// main function starts here

int main() {

  Acc1 a1;

  return 0;

}

Learn more:

1. A company that allows you to license software monthly to use online is an example of ? brainly.com/question/10410011  

2. Prediction accuracy of a neural network depends on _______________ and ______________. brainly.com/question/10599832  

3. The shape of our galaxy was determined ‘on the inside looking out' by surveying the milky way using ____________ telescopes. brainly.com/question/7866623

Answer details:

Grade: Senior Secondary School

Subject: Computer Science

Chapter: C++ Programming

Keyword:

Java, input, output, programming, statements, if-else, loops, print, string, while, public, void, static, main, number, C++, C, class, member function, constructor, destructor, variables, data members, empty class, Acc1, class definition, last character, one, ell

alexgriva [62]3 years ago
4 0
Hi!

Okay, so - 

To make a C++ class, we have to use the keyword <em>class </em>followed by the class name, and a pair of curly braces which will be our <em>class body</em><em>. </em>

Our class body is what holds all of our constructors, functions, and data members. 

So, to write a completely empty class - we would just have to simply write:

<em>class Acc1 
</em>{

};

<em />Note -

All classes must end with a semi colon! This is just a standard rule we follow since it was how C++ has been defined. If you were to leave the semi colon out, you would get a compiler error! =)
You might be interested in
Add me as a friend on Real pool 3D so we can play a round of pool!!!
Sloan [31]

I will but i have to wait till after 3;00 will you still be online by then. If not you can just friend me and message me when you are today

8 0
3 years ago
The belief that the odds of two events occurring together are greater than the odds of either event occurring alone is the _____
iris [78.8K]
The answer is D.) conjunction fallacy
3 0
3 years ago
Read 2 more answers
A company has offices in Honolulu, Seattle, Ogden, and Dublin, Ireland. There are transmission links between Honolulu and Seattl
Dmitry_Shevchenko [17]

Answer:

See explaination

Explanation:

Looking at telecommunications network, a link is a communication channel that connects two or more devices for the purpose of data transmission. The link is likely to be a dedicated physical link or a virtual circuit that uses one or more physical links or shares a physical link with other telecommunications links.

Please check attachment for further solution.

4 0
4 years ago
list the six enternal parts or peripherals of a computer system and identify which are output and which are input devices?
inn [45]
There are many peripheral devices but heres 4 external output ones: monitor, speakers, plotter, and printer. Here are also 4 peripheral input devices: mouse, keyboard, mousepad, and joystick.
3 0
4 years ago
Read 2 more answers
How is a Creative Commons license different from a regular copyright?
gayaneshka [121]

Answer:

Creative Commons is actually a license that is applied to a work that is protected by copyright. It's not separate from copyright, but instead is a way of easily sharing copyrighted work. ... Copyright confers some pretty heavy duty protections so that others don't use your work without your permission.

Explanation:

8 0
3 years ago
Other questions:
  • What is the correct order of network types when categorized by their size or the physical area they cover, from largest to small
    5·1 answer
  • How to write equal to or greater than in word?
    9·1 answer
  • A(n) _____ is a simple database program whose records have no relationship to one another.
    10·1 answer
  • Why ues storage unit?​
    12·1 answer
  • Why is it important to use the binomial nomenclature system?
    6·1 answer
  • A document that summarizes your employment history and qualifications
    9·1 answer
  • A filter is a camera accessory that is mounted on the optical path of the lens.<br> true or false
    6·2 answers
  • Which of the following is not a natural resource
    11·2 answers
  • What happens when you apply a theme to a form?
    14·1 answer
  • Write short cut of<br> fully justified​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!