Question
Explain an object, class and method.

Answers

An object is an entity that keeps together state and behaviors. For instance, a car encapsulates state such as red color, 900 cc etc and behaviors as 'Start', 'Stop' etc., so does an object.

An object is an instance of a class. If you consider “Dog” as a class, it will contain all possible dog traits, while object “German Shepherd” contains characteristics of specific type of dog.

A class represents description of objects that share same attributes and actions. It defines the characteristics of the objects such as attributes and actions or behaviors. It is the blue print that describes objects.

Method is an object’s behavior. If you consider “Dog” as an object then its behaviors are bark, walk, run etc.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q State some of the uses of css?
  • Q What does wsdl stand for?
  • Q CMS (content management system) job roles and responsibilities? CMS (content management system) job duties?
  • Q How do I get a list of Access tables and their row counts?
  • Q Which country borders Russia Sweden and Norway
  • Q Which killer was also known as ‘The Whitechapel Murderer’?
  • Q Why the fuselage of the pressurized aircraft is made of circular cross section?
  • Q Gulf of Mannar Marine National Park is located in
  • Q What happens when the node running the map task fails before the map output has been sent to the reducer?
  • Q Have you ever had a proper Tarot reading?
  • Q How do you calculate record size of an alternate cluster? give your values for both unique and non-unique.