What is a class?

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


Please Help Members By Posting Answers For Below Questions

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2000


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’.

1772


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

1687


What is encapsulation in ict?

597


What are functions in oop?

580






How long to learn object oriented programming?

555


What do you mean by overloading?

574


What makes a language oop?

591


What is constructor in oop?

578


What is the oops and benefits of oops programming?

547


What is the purpose of enum?

577


Why do we use encapsulation in oops?

514


Can you inherit a private class?

629


What is the benefit of oop?

566


Explain the advantages of inheritance.

666