What is the difference between public, private, protected
inheritance?
Answer Posted / krishnakumar
Modifier | Class | Package | Subclass | World
public | Y | Y | Y | Y
protected | Y | Y | Y | N
no modifier | Y | Y | N | N
private | Y | N | N | N
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
an integer constant must have atleast one a) character b) digit c) decimal point
What is the use of main function in c++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Describe the setting up of my member functions to avoid overriding by the derived class?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Which is the best c++ compiler?
What is the purpose of extern storage specifier?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Why would you use pointers in c++?
What is c++ virtual inheritance?
What are the various access specifiers in c++?
What are files in c++?
Are vectors faster than arrays?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?