Answer Posted / julian c
Stop thinking like programmers saying "Object is a class in Java, c# etc".
I have in front of me a number of Whiffleplops of different colours; black, blue and red.
The black, blue and red Whiffleplops are three different objects. They are also of different sizes and I can play with them.
Do you have a Whiffleplop with you? No? (Why not).
Do you see that Whiffleplop is a CLASS of object that I can define as having two attributes (colour and size) and behaviour (you can play with it)? When you do get a Whiffleplop of any size or colour then you'll have an object, or an instance of the Whiffleplop class. You don;t have to have one for me to define the class though!
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sealed modifiers?
What interface must an object implement before it can be written to a stream as an object?
Can you instantiate an abstract class and what is an inner class?
What is the syntax of object oriented method call?
What are the properties that are defined in an object model?
Can you define OOP and principles of OOP?
What is operator overloading?
What is the order of call of constructors in inheritiance?
Explain about overriding polymorphism?
What is data encapsulation and what's its significance?
Explain method overriding.
Are constructors inherited? Can a subclass call the parent's class constructor? When?
Why is message passing between the objects important?
What is difference between polymorphism and normalization?
What is the use of ‘finalize’?