While using virtual function, usually we use base class pointer to access derived class object. can we use derived class pointer to access base class object. if no, what is the reason?
Type: Posts; User: Sheena_sankar; Keyword(s):
While using virtual function, usually we use base class pointer to access derived class object. can we use derived class pointer to access base class object. if no, what is the reason?
I have a variable in a class. How can i access that variable from another class?
Why sizeof is an operator and strlen is a function?