12
C++ Shantu Chandra Das GS,snipeX corp. Abdullah Aal Amin Founder, snipeX corp.

C++ by shantu

Embed Size (px)

Citation preview

Page 1: C++ by shantu

C++Shantu Chandra DasGS,snipeX corp.

Abdullah Aal AminFounder, snipeX corp.

Page 2: C++ by shantu

Class Declaration

Page 3: C++ by shantu

Class Declaration

Page 4: C++ by shantu

Struct in c++The struct keyword defines a structure type.

struct Employee{    short id;    int age;    double wage;};

Page 5: C++ by shantu

Class work

Write a program using struct instead of using class.

Page 6: C++ by shantu

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.

Page 7: C++ by shantu
Page 8: C++ by shantu

Data Type in C++

Page 9: C++ by shantu
Page 10: C++ by shantu

Variable Declaration

Page 11: C++ by shantu

Reference Variable

Page 12: C++ by shantu

Uses of reference