What is the difference between Class and Structure?
Answer Posted / vinod
The difference between a class and a structure is that, by
default, all of the members of a class are private and also private,public and protected but in structure by
default, all of the members of a structure are public.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Explain terminate() function?
Show the declaration for a static function pointer.
What is the role of C++ shorthand's?
Why would you use pointers in c++?
Which operator cannot overload?
How do you remove an element from a set in c++?
What is a syntax in c++?
What are static member functions?
What is a class definition?
Explain stack & heap objects?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Explain how to initialize a const data member.
Can class objects be passed as function arguments?