What is the difference between Class and Structure?
Answer Posted / sharad
in c++ structure and class are same. we can use the
structure in place of class for creating the object. but
the difference is only the default access specifier of the
class is private and public of the structure.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Ask to write virtual base class code?
Which software is best for c++ programming?
What is a linked list in c++?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
What is null pointer and void pointer and what is their use?
How long it will take to learn c++?
What is the difference between method overloading and method overriding in c++?
Explain the register storage classes in c++.
What is class definition 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
Is there any function that can skip certain number of characters present in the input stream?
What is a container class?
How long does it take to get good at leetcode?
What does h mean in maths?
What sorting algorithm does c++ use?