How the keyword struct is different from the keyword class in c++?
Answer / Alka Gautam
In C++, a struct (structure) and a class are similar, but there are some differences. By default, members of a struct are public and share external linkage, while members of a class are private and have no linkage. Additionally, a struct does not provide a constructor by default, while a class does.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is java made in c++?
What c++ is used for?
What is an iterator?
What is public, protected, private in c++?
Tell me an example where stacks are useful?
What is the difference between method and message?
What are files in c++?
What is #include ctype h in c++?
Specify different types of decision control statements?
What is multithreading and what is its use?Whats are multithreading techniques used in C++?
List the advantages of inheritance.
Is c++ high level programming language?