explain defference between structure and class with example
Answers were Sorted based on User's Feedback
Answer / maheshkumar eaga
In structure By default data members are public
In class By default data members are private
| Is This Answer Correct ? | 3 Yes | 0 No |
The structure, data type available in C is defined as Class in C plus plus. Where the data member variables in structure are accessible by all functions, methods. In Class the data variables and methods are encapsulated in one class with explicit accessible feature as public or private to protect the data. the data can also be protected with protect feature which is not available in structure data type. the only difference is data protection.
| Is This Answer Correct ? | 0 Yes | 0 No |
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
all about pointers
Can you explain polymorphism?
What is encapsulation c#?
Which method cannot be overridden?
Can a destructor be called directly?
explain dynamic binding by drowing
What is the point of polymorphism?
WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??
21 Answers Biocon, MIT, NIIT,
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram
what is the application of oops?
What is the oops and benefits of oops programming?