Explain the difference between struct and class in terms of access modifier.
Answer / Anjali Nayak
By default, members of a struct have public access, while members of a class have private access. This can be overridden by explicitly specifying the access modifier.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are proxy objects in c++?
What is the full form of india?
Explain the problem with overriding functions
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
what are Operators and explain with an example?
Are strings mutable in c++?
What are the advantages of c++?
Explain data encapsulation?
Why Pointers are not used in C++?
What are the main features of c++?
Define upcasting.
What is the Difference between "C structure" and "C++ structure"?