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

If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


What is polymorphism in oop example?

515


what type of question are asked in thoughtworks pair programming round ?

1762


What is difference between multiple inheritance and multilevel inheritance?

603


Plese get me a perfect C++ program for railway/airway reservation with all details.

3429






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

1689


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4242


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?

1944


What is polymorphism programming?

605


What are two types of polymorphism?

611


Why is abstraction needed?

567


What are oops methods?

568


What does sksksk mean in text slang?

1537


What are properties in oop?

609


What is the main purpose of inheritance law?

669