Answer Posted / vinay bondade
Everything for what a class is implemented holds good for
structure also in C++. The only difference is the
attributes in a class if access specifiers are not
specified they are Private members but for structure they
are public members.
| Is This Answer Correct ? | 24 Yes | 1 No |
Post New Answer View All Answers
What is functions syntax in c++?
Why do you use the namespace feature?
What are libraries in c++?
Can you sort a set c++?
What is the use of lambda in c++?
Describe linked list using C++ with an example.
Write about the members that a derived class can add?
How a macro differs from a template?
How can you specify a class in C++?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
Distinguish between new and malloc and delete and free().
Explain how to initialize a const member data.
What is a Default constructor?
What does override mean in c++?
Can non-public members of another instance of the class be retrieved by the method of the same class?