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 a binary overloading
What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++
what are the realtime excercises in C++?
What is difference between inheritance and polymorphism?
What is multilevel inheritance explain with example?
Write 7 differences between "Public" function and "Private" function?
difference between class and object
10 Answers Chandan, IBM, Magic Soft,
Can an interface inherit a class?
Get me a number puzzle game-program
Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
define oops with class and object