Most viewed questions in Object Oriented Programming

0 votes
1 answer
2
A struct is the same as a class except that(A) there are no member functions.(B) all members are public.(C) cannot be used in inheritance hierarchy.(D) it does have a thi...
1 votes
1 answer
3
a class having no nameis not allowedcannot have a constructorcannot have a destructorcannot be passed as an argument
6 votes
1 answer
6
We can make a class abstract byDeclaring it abstract using the virtual keywordMaking at least one member function as virtual functionMaking at least one member function a...
4 votes
2 answers
7
What is the right way to declare a copy constructor of a class if the name of the class is MyClass?MyClass (constant MyClass * arg)MyClass (constant MyClass & arg)MyClass...
2 votes
1 answer
8
When the inheritance is private, the private methods in base class are _____ in the derived class (in C++)inaccessible accessibleprotectedpublic
4 votes
3 answers
11
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, isInheritancePolymorphismOverfunctioning...
2 votes
3 answers
12
0 votes
1 answer
15
7 votes
3 answers
20
Which of the following operator(s) cannot be overloaded?.(member Access or Dot operator)?: (ternary or Conditional Operator):: ( Scope Resolution Operator)All of the abov...