Answer Posted / ashish
Class is a blue print for the objects,suppose take ana
example of bicycle there r 100's of bicycles of same type
having all the characterstic same but still v have
catagorised them in a single catagory bicycle......
so it may aslo be defined as collection of several objects
having same functionality is called class
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is encapsulation in ict?
What are functions in oop?
How long to learn object oriented programming?
What do you mean by overloading?
What makes a language oop?
What is constructor in oop?
What is the oops and benefits of oops programming?
What is the purpose of enum?
Why do we use encapsulation in oops?
Can you inherit a private class?
What is the benefit of oop?
Explain the advantages of inheritance.