Is structure can be inherited?

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


Please Help Members By Posting Answers For Below Questions

What is the best c++ book for beginners?

685


Is c++ faster than c?

688


What does the ios::ate argument do?

772


What are the five basic elements of a c++ program?

692


Does c++ have foreach?

626






What does n mean in c++?

728


What is main function in c++ with example?

651


How many static variables are created if you put one static member into a template class definition?

662


How important is c++?

619


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

707


What is the error in the code below and how should it be corrected?

392


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

665


What do you mean by public protected and private in c++?

696


What is a map in c++?

689


Is empty stack c++?

612