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 do you mean by stack unwinding in c++?
What do you mean by delegate? Can a user retain delegates?
Why is c++ awesome?
What is the difference between the parameter to a template and the parameter to a function?
What is the difference between the compiler and the preprocessor?
What new()is different from malloc()?
What is private public protected in c++?
How can virtual functions in c++ be implemented?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
What is flag in computer?
How important is c++?
What is a dynamic binding in c++?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is the meaning of string in c++?