What is the difference between class and structure?
Answer Posted / mohan
By default the members of struct are public.
By default the members of class are priavte.
When an object is created to a class, constructor will be
called automatically.
But not in struct (if structure having member function with
structure name)
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
How to use CMutex, CSemaphore in VC++ MFC
What are the two different types of polymorphism?
Write a c++ program to display pass and fail for three student using static member function
How do you achieve runtime polymorphism?
How many human genes are polymorphic?
What makes a language oop?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
how to get the oracle certification? send me the answer
What are the three main types of variables?
What is debug class?what is trace class? What differences are between them? With examples.
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What causes polymorphism?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is basic concept of oop?
What does it mean when someone says I oop?