Recent questions tagged oops

0 0 votes
1 1 answer
1.2k
1.2k views
In context of C++, which of thefollowing is valid statement ?(1) Friend function of class isalways a member function ofthat class.(2) Value of static data membercannot be...
0 0 votes
2 answers 2 answers
1.6k
1.6k views
A default catch block catches,[A]. all thrown objects[B]. no thrown objects[C]. any thrown object that has not been caught by an earlier catch block[D]. all thrown object...
1 1 vote
0 0 answers
556
556 views
Please tell why the answer is C, why not A or B?
2 2 votes
0 0 answers
1.2k
1.2k views
Which of the following concepts of OOPS means exposing only necessary information to client?A. EncapsulationB. AbstractionC. Data hidingD. Data bindingAns...
2 2 votes
3 3 answers
12.5k
12.5k views
Which of the following statements is correct?Every class containing abstract method must not be declared abstractAbstract class cannot be directly initiated with new oper...
2 2 votes
1 1 answer
8.2k
8.2k views
When the inheritance is private, the private methods in base class are _____ in the derived class (in C++)inaccessible accessibleprotectedpublic
1 1 vote
2 2 answers
4.1k
4.1k views
Which of the following is incorrect in C++?when we write overloaded function we must code the function for each usagewhen we write function template we code the function ...
2 2 votes
3 3 answers
7.6k
7.6k views
Which of the following, in C++, is inherited in a derived class from base class?constructordestructordata membersvirtual methods
To see more, click for the full list of questions or popular tags.