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 |
Describe what an Interface is and how it?s different from a Class.
Can enum be null?
Precompilation ?
What are the two different types of polymorphism?
What are two types of polymorphism?
What is object and class in oops?
What is the differances between a abstract calss and interface
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required
What is a template?
What's the full form of STL?
explain the concepts of oops?
What is the point of polymorphism?