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 static and dynamic Binding?
What is composition? Explain the purpose of composition.
What are different types of arguments?
Can encapsulation be called as a security device?
What is data encapsulation and what is its significance?
What are the limitations of oops?
What is the difference between an Abstract class and Interface?
What is the main advantage of using inheritance?
What is Abstract method and how different from Virtual Method?
Why abstraction is important?
What is polymorphism? When is it employed? give an example.
Can we override static methods of a class?
What is the difference between a virtual method and an abstract method?
Explain about the relationship between object oriented programming and databases?
What do you mean by abstract classes?