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 |
Why oops is important?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
Program to check whether a word starts with a capital letter or not.
What is Iteration Hierarchy? What is what is Object behavioral concept?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
How to improve object oriented design skills?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
why function overloading is not called as pure polymorphism?
what is a binary overloading
What are the benefits of oop?
What is DeadlyDiamondDeathProblem ?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.