give me some class & objects examples?
Answer / divyaja
Sometimes, a programmer will want to
define a custom "thing" and the operations
that can be performed on that "thing"
• A class is the definition
• An object is a particular instance of a class
• Classes contain
– data, called members
– functions, called methods
| Is This Answer Correct ? | 7 Yes | 0 No |
What is late binding c++?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
what does the following statement mean? int (*a)[4]
what is Loop function? What are different types of Loops?
Difference between static global and global?
16 Answers Microsoft, Symphony, Wipro,
What is the difference between Class and Structure?
40 Answers HP, IBM, Samsung, TCS,
Can a constructor throw a exception? How to handle the error when the constructor fails?
What do you mean by enumerated data type?
What relational operators if statements in c++?
What are move semantics?
List out some of the object-oriented methodologies?
Why do we need constructors in c++?