What is the difference between Class and Structure?
Answer Posted / rohit patil
Syntax of class
class class_name
{
variable_declaration
function_declaration
};
syntax of structure
struct struc_name
{
variable declaration
};
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain the purpose of the keyword volatile.
How many types of classes are there in c++?
What is a string example?
Describe delete operator?
List the types of polymorphism in c++?
Will a catch statement catch a derived exception if it is looking for the base class?
Do vectors start at 0?
What is the difference between multiple and multilevel inheritance in c++?
Should the this pointer can be used in the constructor?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Is c++ fully object oriented?
What is function prototyping? What are its advantages?
Do the parentheses after the type name make a difference with new?
What are files in c++?
How do I run c++?