skip to main | skip to sidebar

ANS BOARD

Monday, August 20, 2007

What is objects?


ObjectsObject-oriented programming focuses on constructs called “objects.” An object consists of data and functions known as methods which use or change the data. (Methods are similar to procedures or functions in other languages.) Objects of the same kind are said to have the same type or be in the same class. A class defines what data can be in an object, and what operations are performed by the methods. One or more objects can be created or “instantiated” from a class. The structure of a Java program consists of various objects exchanging messages. The keyword class defines a blueprint for objects with similar properties. In our first example we define the class Particle. public class Particle
{
double x, y, vx, vy, mass;
}
Posted by Ans Board at 9:32 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2007 (388)
    • ►  September (75)
    • ▼  August (295)
      • What are three ways in which a thread can enter th...
      • What are synchronized methods and synchronized sta...
      • What is synchronization and why is it important?
      • What do you understand by Synchronization?
      • Name the containers which uses Border Layout as th...
      • What's the difference between an interface and an ...
      • How could Java classes direct program messages to ...
      • An application needs to load a library before it s...
      • What is NullPointerException and how to handle it?
      • What is more advisable to create a thread, by impl...
      • Jack developed a program by using a Map container ...
      • Can you have virtual functions in Java?
      • What does a well-written OO program look like?
      • What is Java?
      • How are Observer and Observable used?
      • Which containers use a border layout as their defa...
      • What is a transient variable in Java?
      • What is the difference between Serializalble and E...
      • How many methods in the Externalizable interface?
      • How many methods in the Serializable interface?
      • If a class is located in a package, what do you ne...
      • How to define an Interface in Java ?
      • Java Interview Questions - How to define an Abstra...
      • What is similarities/difference between an Abstrac...
      • Is Iterator a Class or Interface? What is its use?
      • What is Collection API ?
      • What is asp web forms?
      • Declare and use enumeration in j#
      • Declare and enumeration in vb
      • Declare and use an enumeration in c#
      • Declaring simple properties in j#
      • Declaring simple properties in vb
      • Declaring simple properties in c#
      • Declaring indexed properties in j#
      • Declaring indexed properties in vb
      • Declaring indexed properties in c#
      • Accessing indexed properties in j#
      • Accessing indexed properties in vb
      • Accessing indexed properties in c#
      • statements in c#?
      • variable declaration in j#?
      • variable declaration in c#?
      • variable declaration in vb.net?
      • Language support in asp.net?
      • What is Asp.net?
      • Tree view declaration in Asp.net?
      • Grid view?
      • Sruthi Kamal's new endeavour
      • Kamal bravura show
      • Dasavatharam for Pongal
      • Kamal’s plans for Dasavatharam
      • css
      • measles
      • mums
      • colonel sanders
      • chickenbox
      • Calories
      • minerals(fluorescent)
      • GEMSTONES
      • minerals
      • What is ICMP?
      • What is autonomous system?
      • What are the possible ways of data exchange?
      • What are 10Base2, 10Base5 and 10BaseT Ethernet LANs ?
      • What is point-to-point protocol?
      • How to create own website
      • What is subnet?
      • What is cladding?
      • What is a Management Information Base (MIB)?
      • What is RAID?
      • What is mesh network?
      • What is the Network Time Protocol?
      • What is a pseudo tty?
      • SMTP
      • What is a DNS resource record?
      • Explain the function of Transmission Control Block?
      • What is virtual path?
      • what is spam
      • What is the difference between an unspecified pass...
      • E-mail
      • pop mail
      • What is anonymous FTP and why would you use it?
      • pop
      • Money can’t buy kids happiness, but it's nice
      • Earth science
      • What Really Prevents Colon Cancer?
      • What are General Middleware?
      • What is meant by Symmentric Multiprocessing (SMP)?
      • bluetooth
      • What are the functions of the typical server program?
      • What is meant by Middleware?
      • OSI
      • What is Message Oriented Middleware (MOM)?
      • What are called Non-GUI clients, GUI Clients and O...
      • TCP/IP
      • What are the Classification of clients?
      • Introduction to Proxy Servers
      • Networking
      • What are the three types of SQL database server ar...
      • Wireless networking
    • ►  July (18)

About Me

Ans Board
View my complete profile