Pls...could any one tell me that whether we can access the
public data memeber of a class from another class with in
the same program.
Awaiting for your response Thanku
Answer Posted / poorna chandar rao
yes accesses the public member of data of another class by
using Extend from another class
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of polymorphism?
What is multilevel inheritance explain with example?
What are oops methods?
What is the types of inheritance?
What is and I oop mean?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What are the components of marker interface?
is there any choice in opting subjects like 4 out of 7
when to use 'mutable' keyword and when to use 'const cast' in c++
• What are the desirable attributes for memory managment?
What does I oop mean?
Whats oop mean?
What are the features of oop?
What is a function in oop?
What are oops functions?