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 / saurabh
You can access by just creating the object of first class
and then using this object to access public member in
second class.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are two types of polymorphism?
What is class in oop with example?
What is polymorphism and example?
What is encapsulation c#?
What is the difference between a constructor and a destructor?
What is abstraction encapsulation?
Why do we use inheritance?
What is polymorphism in oop example?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is the problem with multiple inheritance?
What does sksksk mean in text slang?
Why is encapsulation used?
What is the important feature of inheritance?
Can we create object of interface?
What is the difference between abstraction and polymorphism?