Constant member function in c++ class #cppprogramming

preview_player
Показать описание
JOIN ME
—————

COMPLETE PLAYLIST
————————————
C++ Tutorial For Beginners :
STL (Standard Template Library) :

INTERVIEW PLAYLIST
————————————

QUICK SHORT VIDEOS
————————————-

Here we will learn what is the use of constant member function in c++ programming language.

#cppprogramming #classandobject #programming
Рекомендации по теме
Комментарии
Автор

Actually what I found I do t know it’s right or wrong, yu took intial x and after that yu provide public : access that means that wasn’t in public so, I predicted error like that actually 😅

Rambo
Автор

sample(const sample&) = delete;

this is the copy constructor

sample(const sample& robj)
{
a = obj.a;
b = obj.b;
}
this is also copy constructor

tell me the deference of this 2 copy constructor

madasudhamanakanagasuresh
Автор

found was explained in 'mutable' keyword Short from your collection.

pradeepjagdale
welcome to shbcf.ru