What is the difference between Class and Structure?
Answer Posted / lucky
1) classes can have data member as well as member function but structure is a data type which can have data member only.
Is This Answer Correct ? | 40 Yes | 31 No |
Post New Answer View All Answers
How can you specify a class in C++?
What is oops in c++?
What is unary operator? List out the different operators involved in the unary operator.
Is c++ an oop?
Which software is best for programming?
What are special characters c++?
What is c++ good for?
Explain the difference between new() and malloc() in c++?
What is srand c++?
What is abstraction in c++ with example?
How long does it take to get good at leetcode?
What is the difference between a declaration and a definition?
What are the types of container classes?
Explain terminate() function?
Give an example of run-time polymorphism/virtual functions.