Interview Question

  • -
    0
    of 0 votes
    8
    Answers

    What default method a empty class holds??
    Empty calss in the sense class does not have any data members and methods..

    - Alex on August 05, 2012 in - Report Duplicate | Flag
    C++

Country: -


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

1. Constructor
2. Destructor
3. Copy constructor
4. Assignment operator function

- Aashish on August 05, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

thx shondik..

- Anonymous on August 05, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Depends on the language, a default class inherits all its super class methods and constructors/destructors. In java it is from java.lang.object

- Raj on August 05, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Raj: The question is tagged C++

- Anonymous on August 07, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 2 vote

constructor

- cobra on August 05, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

For Java, default constructor, which calls the superclass's default constructor.

- Jack on August 05, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

The question is tagged C++

- Anonymous on August 07, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. Default Constructor
2. Destructor
3. Copy Construcotr
4. Assignment Operator
5. Pair of address-of operator (& and const &)

- Anonymous on September 21, 2012 | Flag Reply


Add a Comment
Name:

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

Books

is a comprehensive book walking you through 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