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
geniusboy [140]
3 years ago
9

Define Class in C++. Briefly discuss.

Computers and Technology
1 answer:
lesya [120]3 years ago
3 0

Answer:

Class are the collection of variable and member function.

Class are the blueprint of an object.

Explanation:

Following are the points regarding class in c++

1.In C++ class is an user defined datatype..

2.Classes are the collection of variable and function in c++.

3.To access the property of class we can create object of that class

4.We can use following syntax to declared any class in c++

class classname

{

accessmodifier:

//statement and function

};

main()

{

classname objectname;

}

implementation of class in c++

#include<iostream>

class test // class declaration

{

public: // access modifier

void fun3() // Method definition

{

cout<<" hello :";

}

};

void main() // main function

{

test ob;// creating object

ob.fun3(); // calling function

}

In this program we declared a class "test " in class test. We giving public access modifier .The public access modifier define that variable and function are accessible outside the class and in main method we create the object ob which call the function fun3().

Output:hello :

You might be interested in
Briefly explain the cooling mechanism implemented in FANLESS Laptops
Akimi4 [234]

The primary function of a fan in a computer system is to cool down the internal components and prevent overheating. Fanless computers use alternative cooling methods and lower-powered components that give off less heat. As a result, these machines are quieter during operation, use less energy and are often more compact than fan-based computers. These advantages are particularly important in business settings.
8 0
3 years ago
Write a program that prompts the user to input two numbers, a numerator and a divisor. Your program should then divide the numer
12345 [234]
What language? JavaScript? Python?
8 0
3 years ago
Read 2 more answers
porfavor no es una pregunta dificil, nisiquiera es de una tarea, hace poco mi computador windows 10 no recibia el sonido de mis
amid [387]

Answer:

he intentado encender la computadora mono

Explanation:

6 0
3 years ago
The Internet has made going global easier than it has ever been, but the promise of "borderless commerce" remains restrained bec
Andreyy89

Answer:

The correct option is B: Old brick-and-mortar rules, regulations, and habits

Explanation:

Globalization has been made possible because of the internet. However, the promise of what is considered "borderless commerce" is limited due to the old brick and mortar rules, regulations, and habits. Brick and mortar is considered the traditional businesses offering products and services to customer in a rented or owned store and requires face-to-face business. Hence globalization via the internet is limited because companies have to sort out their building and stores, follow every law and regulation to opening offices and other habits practiced by these brick-and-mortar businesses.

7 0
2 years ago
Structural Styles
Eva8 [605]

Solution :

For Structural Styles the browser's background color.  

html {

background-color: rgb(151, 151, 151);

}

For creating style rule for the background color and setting the body text

body {

background-color: rgb(180,180,223);

font-family: Verdana, Geneva, sans-serif;  

}

For displaying all the h1 as well as h2 headings with the normal weight.

h1, h2 {

font-weight: normal;

}

For create the style rule for all the hypertext link that is nested within the  navigation list  

nav a {

text-decoration: none;

}

For creating style rule for footer element which sets the color of the text to color white and the color of the background to as rgb(101, 101, 101). Also setting the font size to 0.8em. Placing the footer text to horizontally center , and setting the top/bottom of the padding space to 1 pixel.

footer {

background-color: rgb(101, 101, 101);

font-size: 0.8em;

text-align: center;

color: white;

padding: 1px 0;

}

/* Structural Styles At one place*/

html {

background-color: rgb(151, 151, 151);

}

body {

background-color: rgb(180,180,223);

font-family: Verdana, Geneva, sans-serif;  

}

h1, h2 {

font-weight: normal;

}

nav a {

text-decoration: none;

}

footer {

background-color: rgb(101, 101, 101);

font-size: 0.8em;

text-align: center;

color: white;

padding: 1px 0;

}

3 0
3 years ago
Other questions:
  • Two different names that refer to the same data item best defines:
    12·1 answer
  • Can someone help me with...A table can help? PLEASE
    8·1 answer
  • Two samples of dirt are collected from a suspect's tread in his shoe and a crime scene. The forensic investigator does a gross e
    6·2 answers
  • Importance of availability of mobile devices content that is of interest for users.
    12·1 answer
  • What is a boolean in Java
    5·1 answer
  • Write a Java class called BankAccount (Parts of the code is given below), which has two private fields: name (String) and balanc
    9·1 answer
  • Categorize each of the following situations as a compile-time error, run-time error, or logical error. Group of answer choices m
    5·1 answer
  • What two windows security updates do most organizations always patch?
    7·1 answer
  • What is the remainder obtained by dividing x 7 + x 5 + 1 by the generator polynomial x 3 + 1?
    9·1 answer
  • Desktop computers have a(n) ________ unit, located within the system unit, that plugs into a standard wall outlet, converts AC t
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!