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 |
Advantage and disadvantage of routing in telecom sector
What is property in oops?
How would you stop a class from class from being derived or inherited.
What is a class in oop?
what is the need of abstraction? what is abstraction?what is the abstraction for stack?
can we make a class static without using static keyword?
What is encapsulation with real life example?
what is static?
Can we call a base class method without creating instance?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
Why polymorphism is used in oops?
Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.