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

Answer Posted / naveen tuteja

We can declare a structure without a name tag but we cannot
declare a class without name tag.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can private class be inherited?

928


What do you mean by Encapsulation?

826


what is the sylabus for priliminaries?

1926


What is the point of polymorphism?

787


Can destructor be overloaded?

811


What is property in oops?

807


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6722


What is the main feature of oop?

914


What are oops methods?

776


Why multiple inheritance is not possible?

811


What is object in oop?

889


What is difference between abstraction and encapsulation?

826


Which type does string inherit from?

858


Are polymorphisms mutations?

905


What is encapsulation oop?

811