Difference between Structure and Class - WBUT MCA Slove
15-11-2019    288 times
Difference Structure Class WBUT MCA

What is the difference between structure and class ? [WBUT MCA 2011]

Structure is a user defined data type or Abstract Data Type (ADT). It is a collection of variables of different data types. When we declare a variable of a structure, it is creating all the variables together and we can use those variables via structure variable. To declare a structure we use the keyword “struct” .

A class is also a user define data type or Abstract Data Type (ADT). But we can declare member functions along with the member variables in a class. These class variables and functions may access by the objects of that class only. To declare a class we use the keyword “class”.

Private Teacher

What is a self-referential structure? [WBUT MCA 2011]

If a structure declares one or more pointers which point to the same type of structure in it. Then those types of structure known as Self Referential structures.

    Author Details
Arnab De
I have over 16 years of experience working as an IT professional, ranging from teaching at my own institute to being a computer faculty at different leading institute across Kolkata. I also work as a web developer and designer, having worked for renowned companies and brand. Through tutorialathome, I wish to share my years of knowledge with the readers.
    Related Post
  Query About the post