List out function which we can call without using object
Answer / manoj kumar kar
Static Functions
Friend Functions
The above 2 functins can be called without using objects.
| Is This Answer Correct ? | 11 Yes | 0 No |
Is c++ high level programming language?
Is there anything you can do in C++ that you cannot do in C?
Why is c++ is better than c?
What are static member functions?
Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; }
Explain abstraction.
Which software is best for programming?
What are the differences between a struct in C and in C++?
What are function poinetrs? where are they used?
What are the restrictions apply to constructors and destructors?
What is the difference between while and do while loop?
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it