I really liked your way of delivering videos, could you tell me how can I study c++ or any programming language, in general, the right way? Thanks in advance,
If you need my kind of knowledge then you have to go through stack overflow section of c++, and try to read questions and answers and read all the answers.
Follow up : we can change values of const variables or members through pointers. Eg. *(string*)&p1="Sample"; will change pname of p1 even it is given as private.
i am changing already initialized constant variable using initializer list, it should give compilation but it compiled and giving output : #include using namespace std; class Base { const int x=90; public: Base(int a):x{a} {} void getX(){ cout
He already told that .....intializer list only work with constructor as you already assigned value to it ...it will be showcasing u the same value ...if u won't intialyzes at early stage definitely it will throw error
omg, best programming channel ever ever
Thanks dude..
I really liked your way of delivering videos, could you tell me how can I study c++ or any programming language, in general, the right way?
Thanks in advance,
If you need my kind of knowledge then you have to go through stack overflow section of c++, and try to read questions and answers and read all the answers.
Very good explanation with practical example sir
Thanks and welcome
Bro u r awesome....thanks for sharing ur knowledge . Please make some videos on interesting projects in cpp
Noted
I have a simple class
class base{
public:
const int x;
base(){cout
First of all the syntax is wrong for second Ctor.
Nice explaination...👏👏
Very good tutorial !! Thanks!!
Thanks for your comment!!
Hey can u help at 14:08 why output are like constructed
Constructed
Motog4
iPhone ...
Why not like constructed motog4
Constructed iPhone
Follow up : we can change values of const variables or members through pointers.
Eg. *(string*)&p1="Sample"; will change pname of p1 even it is given as private.
Hey can u help at 14:08 why output are like constructed
Constructed
Motog4
iPhone ...
Why not like constructed motog4
Constructed iPhone
@@behindthescene4406 because constructor will be called during object creation, then only functions are called as per the program.
When fcn are called them it must be in sequence na...that's my doubts
Is there an answer to this pointer question?
Great video. But 5 ads? Really takes away from the video.
Now they've started putting more ads
its not in his control and use add blocker if you want :p
oh yeah ! thanks!
Welcome...
i am changing already initialized constant variable using initializer list, it should give compilation but it compiled and giving output :
#include
using namespace std;
class Base
{
const int x=90;
public:
Base(int a):x{a} {}
void getX(){ cout
He already told that .....intializer list only work with constructor as you already assigned value to it ...it will be showcasing u the same value ...if u won't intialyzes at early stage definitely it will throw error
great !!!!
too many ads..