1.

What is the additional feature in classes that was not in structures?(a) Data members(b) Member functions(c) Static data allowed(d) Public access specifierI have been asked this question during an interview for a job.My doubt is from OOPs Basic Concepts in division OOPs Concept & Features of Object Oriented Programming

Answer»

Right OPTION is (B) Member functions

To explain I WOULD say: Member functions are allowed inside a class but were not present in structure concept.DATA members, static data and public access specifiers were present in STRUCTURES too.



Discussion

No Comment Found

Related InterviewSolutions