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
write string class as your own class in java without using any built-in function
Why is object oriented programming so hard?
Is react oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Which type does string inherit from?
How do you define social class?
Explain virtual inheritance?
What is abstraction example?
Why polymorphism is used in oops?
What is abstraction and encapsulation?
Write a program to reverse a string using recursive function?
Who invented oop?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
What is super in oop?
What is encapsulation with example?