what is the main difference between c and c++?
Answer Posted / ankit
in c there is proprocessor while in c++ there is chandan
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is oops and why we use oops? Is react oop? What are constructors in oop? How many human genes are polymorphic? What is the significance of classes in oop? What is the example of polymorphism? What is polymorphism what are the different types of polymorphism? What are the benefits of interface? What is encapsulation in ict? 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 oops and its features? Is html an oop? What is oops concept with example? Following are the class specifications:
class {int a};
class {int b};
Using friend funtion,calculate the max of two objects and
display it.