mentoring class iubat

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

Upload: shant007

Post on 09-Feb-2017

322 views

Category:

Education


0 download

TRANSCRIPT

Page 1: mentoring class iubat

C++Shantu Chandra DasGS,snipeX corp.

Abdullah Aal AminFounder, snipeX corp.

Page 2: mentoring class iubat

Class Declaration

Page 3: mentoring class iubat

Class Declaration

Page 4: mentoring class iubat

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

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

Page 5: mentoring class iubat

Class work

Write a program using struct instead of using class.

Page 6: mentoring class iubat

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: mentoring class iubat
Page 8: mentoring class iubat

Data Type in C++

Page 9: mentoring class iubat
Page 10: mentoring class iubat

Variable Declaration

Page 11: mentoring class iubat

Reference Variable

Page 12: mentoring class iubat

Uses of reference