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
Answers were Sorted based on User's Feedback
Answer / naveen
yes, by using inheritance we can access public members of
class in other class
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / 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 |
Answer / 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 |
What is the example of polymorphism?
What is overloading in oop?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is object in oops?
to find out the minimum of two integer number of two different classes using friend function
In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?
what is difference between String s=new String("vali"); String s="vali"
What is a scope operator and tell me its functionality?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
write a function that takes an integer array as an input and finds the largest number in the array. You can not sort array or use any API or searching needs?
2 Answers IBMS, Zycus Infotech,
Write a program to multiply 3x3 matrics
What are the 4 pillars of oop?