Citrix System Inc Interview Question for Software Engineer / Developers


Team: Shared file
Country: United States
Interview Type: Phone Interview




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

Interfaces has set of abstract methods which should be implemented by the Classes which implementing them . it can have static member variables. it is the abstraction of what to do. When classes implement the interfaces , all of the methods in interface should be implemented.

interfaces do not have any implementaion . Inheritance is the property of deriving the superclass. Inheritance helps to override the specific method of superclass and classes can have all the functionalities by inherting the superclass.

Multiple inheritance is not allowed because of Diamond Problem.
Lets say Class A has method foo and it s inherited by Class B and Class C. both Class B and Class C override the foo method. now Class D extends ClassB and Class C overriding foo method. if we refer just foo compiler wll not able to decide which foo to invoke.

Multiple inheritance does complicate the design problem. java allows single inheritance with mulitple interfaces to clear this ambiguity

- vetriblogger1187 April 10, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Interface defines what requests you can send to the object.Interface defines how it can interact with the outside world.Interface is like I/o for the class.On the other hand Inheritance defines what attributes are handed over to the class in general.Multiple inheritance is not allowed due to duplication of interfaces.

- Anonymous March 25, 2014 | Flag Reply


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