25 solutions available
Question 1What is an object ? Give examples of some real world objects.
Question 2'An object's state and behaviour are two distinct things yet linked to one another'. Comment.
Question 3Define data abstraction.
Question 4Define Encapsulation.
Question 5What is message passing among objects ?
Question 6What are methods ? What do they represent ?
Question 7What is information hiding ?
Question 8What is a method ? Can there be objects without having any methods ?
Question 9What is a class ?
Question 10What is an abstraction ? Can there be multiple abstractions of a real-world entity ?
Question 11How are classes and abstraction linked ?
Question 12How do you map an abstraction into software ?
Question 13How are real world objects implemented/represented in software terms ?
Question 14How is data abstraction associated with encapsulation ?
Question 15'There can be many abstractions of an object'. Comment.
Question 16How does object encapsulate its state and behaviour ?
Question 17How do objects interact with one another? Give an example.
Question 18Why are classes needed ?
Question 19How are classes and objects related to one another?
Question 20Can there be multiple classes for the complete representation of a real world entity ? Give examples.
Question 21Why are classes said to be abstractions of or a set of objects ?
Question 22Why are objects said to be instances of a class ?
Question 23Consider the following code fragment assuming that a class namely Student has been defined earlier :Student stud1;What is above statement...
Question 24How is following statement different from statement given in previous question ?Student stud1 = new Student( );
Question 25Write a program to accept a number and check and display whether it is a spy number or not. (A number is spy if the sum of its digits...