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 are shallow and deep copies?

636


What is ifstream c++?

565


How do you declare a set in c++?

540


How can virtual functions in c++ be implemented?

612


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

572






What is a hashmap c++?

574


What are disadvantages of pointers?

568


What is java and c++?

666


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

614


What is a singleton c++?

551


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

5899


How to declaring variables in c++?

663


Using a smart pointer can we iterate through a container?

565


What is a wchar_t in c++?

587


Differentiate between realloc() and free().

600