What is the difference between a class and a structure in C++?
Answer Posted / nashiinformaticssolutions
With the exception of member variables and methods' default accessibility setting, class and structure (or struct) are essentially the same in C++. They are configured as public in a structure and private in a class.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How is static data member similar to a global variable?
What is c++ vb?
Can we delete this pointer in c++?
Explain dangling pointer.
Write about a nested class and mention its use?
Why c++ is created?
what is 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 #include iomanip?
What does ios :: app do in c++?
What is a container class? What are the types of container classes in c++?
What is #include cstdlib in c++?
To which numbering system can the binary number 1101100100111100 be easily converted to?
What is basic if statement syntax?
What is the syntax for a for loop?