Is structure can be inherited?

Answer Posted / mahan

struct has come into c++ from C. It enables to group together different elements of different types so that we can access them together. Basically it simplifies memory access. All members in a struct have their access as public.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between struct and class?

729


Can create new c++ operators?

562


How should runtime errors be handled in c++?

601


What is virtual destructor ans explain its use?

595


Explain pass by value and pass by reference.

585






What is a stack c++?

562


Why is the function main() special?

617


List the types of polymorphism in c++?

615


Can we use clrscr in c++?

521


Write a program which uses Command Line Arguments

621


What is the v-ptr?

628


Explain linear search.

617


What are the manipulators in c++?

541


State two differences between C and C++.

600


What does the ios::ate argument do?

654