Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

java program

$
0
0

class A{ void f1(){}; void f2(){}; void f3(){}; }

class B{ void f4(){}; void f5(){}; }

----main----- { }

its not a complete program..just an outline how the program looks like.now the qustion is "how can i enter inside f4 from f1 and call rest of the methods without creating any further objects from f4"


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>