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 / saurabh
You can access by just creating the object of first class
and then using this object to access public member in
second class.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Why is abstraction needed?
How is class defined?
What are the benefits of interface?
What is oops and why we use oops?
Prepare me a program for the animation of train
• What are the desirable attributes for memory managment?
What is object in oop?
what are the ways in which a constructors can be called?
What do you mean by variable?
What is polymorphism and its types?
What are oops functions?
What is meant by multiple inheritance?
Why do pointers exist?
What is object and example?