There are 2 classes . Class A and Class B. In Class A i declared
a variable in private. if we can access this private variable in
Class B. If yes means , how we can access ?

Answer Posted / deepak sarao

with the help of friend function u can access private of
class A in class B

Is This Answer Correct ?    5 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should a junior java developer know?

643


What is j2ee explain the component of j2ee application?

600


What is awt panel java?

690


How does event listener work in java?

654


What is javac written?

670


Which edition of java is used for web application?

672


What is architecture neutral in java?

653


What is j2ee application model?

641


What is java 2 platform, standard edition (j2se)?

709


What is java mobile?

657


What is ejb module?

686


What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?

697


What are different modules in spring?

710


What is javaserver pages (jsp)?

682


In DAO we are writting sql queries , how it is possible with creating and closing database connections.

1697