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

Is it possible for a member function to delete the pointer, named this?

604


What does namespace mean in c++?

543


What do you mean by funtion prototype?

574


What is the difference between strcpy() and strncpy()?

602


what kind of projects are suitable for c and c++

612






Can a program run without main?

617


Why struct is used in c++?

612


Should I learn c or c++ or c#?

549


What is ios :: in in c++?

624


State two differences between C and C++.

600


What is private public protected in c++?

543


Is it possible to have a recursive inline function in c++?

539


which operator is used for performing an exponential operation a) > b) ^ c) none

597


What is lazy initialization in c++?

644


What is unary operator? List out the different operators involved in the unary operator.

578