Posts

Showing posts with the label data class and exception class

An introduction about data class and exception class

Posted this to make aware by the term data class and exception class First of all it is necessary to know that what is data class and what is exception class  data class is generally hat we write that is what the the programmer or the user write. So i would like to make the clear difference about it. First to understand it we have to  the word throw and return  return comes into picture when the question comes about calling the function in the class specified by the user think that the user constructed the class A in which the methods are defined such as for e.g add(); ,sub();,test(int a,int,b);  so from the  main  user calls it explicitly by passing the argument or without argument So if the function contains any return type and returns the statement then it gets return where the calling statement is specified So this is the concept about how the function works by calling and returning the value of from where it is called.  Now ...