C++ Struct and Class compare |
Objectives :
- myClassOrStruct1.cpp
- A Class is a Struct with added features and spefications.
- In Struct all members are public as default.
- The members in a class can have the scopes or exposure like
private, protected or public.
|
Step: 1 Create a source file.
|
Step: 2 Edit and save Source file
|
Step: 3 Runtime Views:
|
Step:
|
|