Download - mentoring class iubat
Transcript
C++Shantu Chandra DasGS,snipeX corp.
Abdullah Aal AminFounder, snipeX corp.
Class Declaration
Class Declaration
Struct in c++The struct keyword defines a structure type.
struct Employee{ short id; int age; double wage;};
Class work
Write a program using struct instead of using class.
Difference between a struct and a class
In C++, the only difference between a struct and a class is that struct members are public by default, and class members are private by default.
Data Type in C++
Variable Declaration
Reference Variable
Uses of reference