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
True / False
Archy [21]
False,if it takes one clock cycle to go through a pipeline with 6stages
5 0
3 years ago
________ has the ability to drag windows to the edges or corners of your screen and have them snap into place.
qaws [65]

Answer:

Snap Assist

Explanation

Snap Assist lets you snap a window to one side of your screen without having to move it around and resize it manually.

3 0
2 years ago
What is ment by creative middle way solution
SOVA2 [1]
Looking for a way to resolve conflicting values that comes as close as possible to satisfying all relevant obligation
7 0
3 years ago
If you define CSS rules on a parent control, the rules will be inherited by all of the children widgets.
den301095 [7]

Answer:

<u><em>TRUE</em></u>

Explanation:

7 0
3 years ago
1. How many questions are on the Consensus Assessment Initiative document?
Angelina_Jolie [31]

Answer:

i have no idea

Explanation:

3 0
2 years ago
Other questions:
  • 1) why is software engineering considered engineering and not manufacturing?
    9·1 answer
  • When creating a software package, the software must be designed, the code must be written, and then the code must be tested. Thi
    6·1 answer
  • In the Remote Access Domain, if private data or confidential data is compromised remotely, you should set automatic blocking for
    5·1 answer
  • Is there a relationship between cybercrime and traditional crime?
    6·1 answer
  • ............................... ?
    11·1 answer
  • Write a program to generate following series in qbasics 100,81,64,....1​
    13·1 answer
  • Which of the following statements is TRUE of a peer-to-peer network?
    10·1 answer
  • The startup routine runs,when machine boots up is known as​
    6·2 answers
  • Write A Code In Python
    8·2 answers
  • Which language should you use to add functionality to web pages.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!