how much classes are used in c++
Answers were Sorted based on User's Feedback
We can use more classes these are userdefined and builtin
classes
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / saurabh
We can use as many classes as we want in our program..
By the way AMIT, main() is a function and not a class
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / preeti goyal
In each program main is a function. but main is also hold
by a class so atleast one class is necessary.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / amit
WE CAN DEFINE AS MANY CLASSES AS WE WANT.THERE IS NO
RESTRICATION.BUT THERE IS ATLEST ONE CLASS i.e. main()
| Is This Answer Correct ? | 8 Yes | 14 No |
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance
Which type does string inherit from?
Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345
can you give real time example for polymarphism
What do you mean by Encapsulation?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
how does a main() in C++ is different from main() in C?
what type of questions
What do you mean by variable?
Can you explain polymorphism?
2. Give the different notations for the class.\
What are benefits of oop?