What is the difference between public, private, protected
inheritance?
Answer Posted / priya
public: class members are access from the outside the class
private: class members can access only within the class
protected:class members can access inside the same package
Is This Answer Correct ? | 104 Yes | 51 No |
Post New Answer View All Answers
What is ofstream c++?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Explain shallow copy?
Which is most difficult programming language?
When should overload new operator on a global basis or a class basis?
What is a constant? Explain with an example.
Write a c program for binary addition of two 8 bit numbers.
What is an accessor in c++?
write a programme to get a character and thier ASCII value
What is basic if statement syntax?
Write about the retrieval of n number of objects during the process of delete[]p?
Describe the process of creation and destruction of a derived class object?
What are maps in c++?
Tell me can a pure virtual function have an implementation?
What is abstraction with real time example?