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 / pramod
If it's about the data accessing, whether public or private
... you can use friend function.This friend function can be
member of 2nd class and friend for the 1st class.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is an interface in oop?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What polymorphism means?
Explain the advantages of inheritance.
Which language is pure oop?
What is the point of oop?
What is object in oop?
What do you mean by abstraction?
What are the components of marker interface?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
How to improve object oriented design skills?
What is the real time example of inheritance?
What is purpose of inheritance?
What is the advantage of oop over procedural language?