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
Consider a classful IPv4 address 200.200.200.200? What is its implied subnet mask? If we take the same address and append the CI
topjm [15]

Answer:

a. 255.255.255.0 (class C)

b. 255.255.255.224

Explanation:

Here, we want to give the implied subnet mask of the given classful IPV4 address

We proceed as follows;

Given IPv4 address: 200.200.200.200

Classes

Class A : 0.0.0.0 to 127.255.255.255

Class B: 128.0.0.0 to 191.255.255.255

Class C: 192.0.0.0 to 223.255.255.255

Class D: 224.0.0.0 to 239.255.255.255

so 200.200.200.200 belongs to Class C and it's subnet mask is 255.255.255.0

In CIDR(Classless Inter Domain Routing)

subnet /27 bits means 27 1s and 5 0s. so subnet

i.e 11111111.11111111.11111111.11100000 which in dotted decimal format is 255.255.255.224 .

4 0
3 years ago
Which is the following is a valid email id<br><br>​
Minchanka [31]

Answer:

sorry there are no options available

6 0
3 years ago
What are threats to computer system
4vir4ik [10]
Breach..
bugs and viruses
hack
3 0
4 years ago
Read 2 more answers
Dadadadaddaaffafafasgag
skad [1K]
Thanks for the points lol have a good day or night
7 0
3 years ago
What kind of network connection do you think is used to connect most wireless video game controllers to consoles, and why would
Ostrovityanka [42]

Answer:

I would say Lan

Explanation:

5 0
3 years ago
Other questions:
  • In the INSERT statement that follows, assume that all of the table and column names are spelled correctly, that none of the colu
    9·1 answer
  • The ____________________ packet-filtering firewall allows only a particular packet with a particular source, destination, and po
    10·1 answer
  • Visual imagery encoding relates to _____ encoding, in that a person is connecting the new information to previously existing inf
    11·1 answer
  • An audit trail is a record of how a transaction was handled from input through processing and output
    10·1 answer
  • Which of the following that can be use to access session variables in PHP?
    14·1 answer
  • A chemical mixture that is burned to produce thrust. (Jet engine homework)
    14·2 answers
  • The average numbers of shares a piece of content receives is known as its:
    7·1 answer
  • HELP 20 points THIS IS ON EDGE IF YOU DON'T KNOW THE ANSWER DON'T RESPOND
    12·2 answers
  • Do anyone know how to code like I need someone do a code for me?
    13·1 answer
  • Criminal investigations are limited to finding data defined in the search ____.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!