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
Answer Posted / 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 |
Post New Answer View All Answers
Can you inherit a private class?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
what is different between oops and c++
What is class and example?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is encapsulation in oop?
How do you use inheritance in unity?
c++ program to swap the objects of two different classes
What is inheritance and how many types of inheritance?
What does <> mean pseudocode?
write string class as your own class in java without using any built-in function
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
what is difference between class template and template class?
How do you answer polymorphism?
Prepare me a program for the animation of train