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

Answer Posted / naveen tuteja

A structure can't contain the static ans constant variable
but a class can contain both.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do pointers exist?

907


What is class and object in oops?

864


Which is not an object oriented programming language?

764


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2396


What is coupling in oops?

852


What is ambiguity in inheritance?

880


What is abstraction in oop?

882


class type to basic type conversion

2128


what is graphics

2232


What is polymorphism and its types?

836


Can bst contain duplicates?

973


officer say me - i am offered to a smoking , then what can you say

1880


What is destructor example?

797


What are the types of abstraction?

800


What is encapsulation with example?

816