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 / naveen

yes, by using inheritance we can access public members of
class in other class

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new keyword in oops?

770


What is destructor oops?

825


Can destructor be overloaded?

787


What are different oops concepts?

767


Why multiple inheritance is not allowed?

790


Why is abstraction used?

826


What is polymorphism in oop example?

715


What is oops and its features?

817


What does sksksk mean in text slang?

1816


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2136


write a program to find 2^n+1 ?

1763


What is the difference between a constructor and a destructor?

838


What is byval and byref? What are differences between them?

1927


What is polymorphism and why is it important?

755


What is static modifier?

827