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
I’m quitting this thing so I’m giving all my points away which are 218!!! I’m still gonna have more tho just in case I ever need
Sedaia [141]

Answer:

skdjdishsjsbsisjsjsjsjsnssnsjsjsjsjsjsjjskdxkjdsisi

4 0
3 years ago
Read 2 more answers
What is meaning of geo and bio​
Aleks [24]

Answer:

GEO. genetically enhanced organism. Medical, Health, Healthcare.

The word biology is derived from the greek words /bios/ meaning /life/ and /logos/ meaning /study/ and is defined as the science of life and living organisms. An organism is a living entity consisting of one cell e.g. bacteria, or several cells e.g. animals, plants and fungi.

Hope it helps

Explanation:

5 0
3 years ago
Read 2 more answers
Code hs spell it out 7.2.6
fgiga [73]

what do you mean can you say it more clear?

4 0
3 years ago
A ________ is a small message box that displays when the pointer is placed over a command button.
Aleonysh [2.5K]

An enhanced <u>ScreenTips</u> is a small message box that displays when the pointer is placed over a command button.

<h3>What are ScreenTips?</h3>

ScreenTips is known to be a term that connote a small windows that shows any kind of descriptive text if a person place the pointer on a command or on a control.

Note that Enhanced ScreenTips are found to be bigger windows that shows a lot of descriptive text than a ScreenTip.

Therefore, An enhanced <u>ScreenTips</u> is a small message box that displays when the pointer is placed over a command button.

Learn more about ScreenTips from

brainly.com/question/26677974

#SPJ1

6 0
2 years ago
Provide one example of how information technology has created an ethical dilemma that would not have existed before the advent o
kolezko [41]

Answer:

One of the  top ethical dilemma is privacy issue.

Explanation:

With advent of I.T., personal data are kept in a digital platform which can be vulnerable to security breach. Hacker or other unauthorized parties can find their way to breach the computer system and steal the private information of the user.

Besides, the users' activities of computer machine can also be tracked. This is often happen in a corporate world where some employers tend to monitor their staffs' work performance through the computer. This can be an offence to the privacy of an individual.

4 0
4 years ago
Other questions:
  • How do you fix a computer
    12·1 answer
  • The last step on Kotter’s Eight-Step Change Model is to anchor the changes in corporate culture; to make anything stick, it must
    14·1 answer
  • 1. The best program to present numerical data in would be ____. a. Access c. PowerPoint b. Excel d. Word
    6·1 answer
  • There will be 10 numbers stored contiguously in the computer at location x 7000 . Write a complete LC-3 program, starting at loc
    14·2 answers
  • Problem # 1 [End of chapter problem] The following character encoding is used in a data link protocol: A: 01100111 B: 11110011 F
    14·1 answer
  • Why am I not getting the activation link for my account?
    11·1 answer
  • Historically, storytelling passed down the most important ideas about life, family, and society from generation to generation; t
    10·2 answers
  • Create a dynamic array of 100 integer values named myNums. Use a pointer variable (like ptr) which points to this array. Use thi
    6·1 answer
  • Tina has taken the time to modify font sizes and colors in a text box and would like to duplicate those settings on other text b
    12·2 answers
  • Which of the following is a good design tip.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!