What is the difference between declaration and definition?
Answer Posted / s
Declaration means we are just creating a variable or method.
Defination means we are assigning some value for a variable
& doing some functions in method
| Is This Answer Correct ? | 116 Yes | 48 No |
Post New Answer View All Answers
How many human genes are polymorphic?
What is the main purpose of inheritance law?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What are classes oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
what is difference between class template and template class?
What is the real life example of polymorphism?
What is object in oops?
What is the significance of classes in oop?
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 this pointer in oop?
What is object-oriented programming? Webopedia definition
What is polymorphism explain?
What is class and object in oops?