difference between class and object
Answer Posted / srinivas konga
class is acollection of methods
it is a logical representation
object is a instance of class
it is physical representation
it is always in local declaration
| Is This Answer Correct ? | 27 Yes | 4 No |
Post New Answer View All Answers
What are the 4 pillars of oop?
State what is encapsulation and friend function?
Which language is not a true object oriented programming language?
Which language is pure oop?
Why do we use class?
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
Why do we use oops?
What is the real time example of inheritance?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Get me a number puzzle game-program
Why is encapsulation used?
What is a function in oop?
what's the basic's in dot net
What are the two different types of polymorphism?
What is polymorphism and why is it important?