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 |
How do you answer polymorphism?
Can we override main method?
What is multilevel inheritance explain with example?
Conversion from a basic type to a class type may be achieved using______________
Can main method override?
what type of question are asked in thoughtworks pair programming round ?
What is oops concept with example?
What are the 4 main oop principles?
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
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.
What type of Job you are providing?
Why is there no multiple inheritance?