Yahoo Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

having a global object of this class, then use the object to invoke those functions. Similiar to the static functions.

- adon July 21, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If we are talking about functions (or I prefer methods) only then it can be easily done by putting all needed methods to another class internal to out target class, declare a _static_ field of type of that internal class and access to methods thru that object.

I am a bit rusty with C++ so I am not sure if it is possible to use unnamed structure. If not then it appears to be possible to implement the outer class as a proxy of the inner class, i.e. make them implement the same interface but call inner class instance methods from the outer class.

Lastly I really doubt hacks of such kind may have any practical purpose.

- Schultz July 21, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

making any non-class function friend of the given class should allow function to access all its private members.

- Carbon April 05, 2008 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More