
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
What does a semicolon do after a C++ class name?
If you have statements like −
Class Person;
This is a forward declaration. It lets the following code know that there is are classes with the name Person. This satisfies the compiler when it sees these names used. Later the linker will find the definition of the classes.
- Related Articles
- What does the leading semicolon in JavaScript libraries do?
- Do I need to use a semicolon after every function in JavaScript?
- When is a semicolon after } mandated in C++ Program?
- When should I use a semicolon after curly braces in JavaScript?
- Why should we use a semicolon after every function in JavaScript?
- What Does a VPN Tunnel Do?
- What does built-in class attribute __dict__ do in Python?
- What does built-in class attribute __doc__ do in Python?
- What does built-in class attribute __module__ do in Python?
- What does built-in class attribute __bases__ do in Python?
- What does Array.Rank property of array class do in C#?
- What does Array.IsFixedSize property of array class do in C# ?
- What does Array.IsReadOnly property of array class do in C#?
- What does Array.Length property of array class do in C#?
- What does Array.LongLength property of array class do in C#?

Advertisements