Inheritance is more suitable while designing a system using OOP because these are some reasons. Inheritance is a way to compartmentalize and reuse code by creating collections of attributes and behaviors called objects which can be based on previously created objects. In classical inheritance where objects are defined by classes, classes can inherit other classes. The new classes, known as Sub-classes (or derived classes), inherit attributes and behavior of the pre-existing classes, which are referred to as Super-classes (or ancestor classes). In Prototype-based programming objects can be defined directly from other objects without the need to define any classes. plz dont same copy send.
does anybody hav an idea to check if the user in put is integar or char (letters)...
in fact, my prog goes to infinit loop as entered letter instead of integers. so, i want to write a function which can check if the user input is integer or not. i wrote a loop which checks every element of the array one by one with a nested loop to be equal to 'a', 'b'. 'c',... and so on. but it becomes too lenghty as i am to care of capital alphabits(A,B,C,...) too.
give me some idea please.
OK, Thanks But after few hour i m in examination Room for CS201 paper, but my next paper is MTH202 and I don't have a single martial for this paper so please help me Yaar, and what about your next paper........??
We are user-generated contents & non-commercial site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. All Contents on site are for personal & non-commercial use.We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at email@example.com with copyright detail & We will happy to remove it immediately.