what is the difference between class and structure in C++?

Answer Posted / pradeepramagiri

class members have the privite access by default where as
structure members have the public access by default

Is This Answer Correct ?    34 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the important components of cohesion?

548


What are benefits of oop?

629


What is class and object with example?

581


What is a class oop?

588


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1826






What is the use of oops?

614


What is an interface in oop?

589


What do you mean by abstraction?

604


What is object in oop?

671


What does and I oop and sksksk mean?

644


What is abstract class in oops?

593


Why is there no multiple inheritance?

562


What is difference between data abstraction and encapsulation?

610


Why is polymorphism needed?

585


What is static modifier?

626