What is the difference between class and structure?

Answer Posted / guest

structure is a value type class is reference type,
struct Memory will be on stack and class Memory stored on
Heap,
struct not suports inheritance and class can?

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a c++ program to display pass and fail for three student using static member function

2922


What is the main feature of oop?

747


What is interface? When and where is it used?

1755


What is abstraction oop?

714


Write a program to sort the number with different sorts in one program ??

1991






What is encapsulation in oops?

628


what type of questions

1782


What does and I oop mean in text?

731


Why do we use oop?

690


What makes a language oop?

702


What is abstraction encapsulation?

748


Write a program to reverse a string using recursive function?

1879


What causes polymorphism?

672


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6245


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1526