Object-Oriented programming

Object-Oriented programming

View Answers

March 22, 2009 at 11:43 PM

Hi friend,

Code to help in solving the problem :

class ArrayExample
{
public static void main(String[] args)
{
String nameAr[] = new String[5];
nameAr[0] = "name1";
nameAr[1] = "name2";
nameAr[2] = "name3";
nameAr[3] = "name4";
nameAr[4] = "name5";

int salaryAr[] = new int[5];
salaryAr[0] = 1000;
salaryAr[1] = 2000;
salaryAr[2] = 3000;
salaryAr[3] = 4000;
salaryAr[4] = 5000;

System.out.println("Name : Salary");
for(int i=0;i<5;i++)
{
salaryAr[i] = salaryAr[i] + ((salaryAr[i]*5)/100);
System.out.println(nameAr[i]+" : "+salaryAr[i]);
}

}
}

Thanks









Related Tutorials/Questions & Answers:
object oriented programming protocol
object oriented programming protocol  What is object oriented programming protocol? Is it different from objective c protocol programming?? Thanks
Object Oriented Programming in PHP
Object Oriented Programming in PHP  Hi, Which version of PHP supports OOPS. How can I learn Object Oriented Programming in PHP? Thanks (adsbygoogle = window.adsbygoogle || []).push
Advertisements
Object Oriented Programming II
Object Oriented Programming II  Instructions: ->each class to be created must have encapsulated fields, setters and getters methods, and constructors Create a class named "Paper" with the following attributes
object oriented programming data science
object oriented programming data science  Hi, I am beginner in Data...: object oriented programming data science Try to provide me good examples or tutorials links so that I can learn the topic "object oriented programming
What are the features and advantages of OBJECT ORIENTED PROGRAMMING?
What are the features and advantages of OBJECT ORIENTED PROGRAMMING?  What are the features and advantages of OBJECT ORIENTED PROGRAMMING
object oriented programming - Java Beginners
object oriented programming  sir, i read in the book tat object oriented program exhibits recurring structures. i want to know "what is meant by recurring structures?"  Hi Friend, Any structure to be occurred over
Object-Oriented programming - Java Beginners
Object-Oriented programming  Write a program to display the names and salaries of 5 employees.Make use of a class and an array.The salary of each employee should increase by 5% and displayed back.  Hi friend, Code
Java using Netbeans Object Oriented Programming
Java using Netbeans Object Oriented Programming   I am trying to make a program that uses a main class and a separate class with one public method and one private method. The main method in the main class asks the user for 2
Object Oriented Programming in Java
OOPS acronym for Object Oriented Programming is a model or concept that works around objects and data. Programming language like Java that follow the OOP... is an instance of a class. For a language to be an Object Oriented Programming
An Overview of Java      Java is a programming language      Java is Object Oriented Programming
; Java as a programming language Java is an Object oriented...; Java as an Object Oriented Language In this section, we will discuss the OOPs... are in an object-oriented form of C which are being provided by javah , but they are still
Object Oriented
Object Oriented  C++ is Purely object oriented or not .Then why java called purely object oriented
Is Java object oriented?
Is Java object oriented?  Hi, Is Java object oriented? Thanks   Hi, Java is object oriented programming language. It is supports OPPS concepts: Object Class Inheritance Polymorphism Abstraction Encapsulation All
Exp.4 Write any C++ programs to demonstrate multiple inheritance concept of an object oriented programming.
Exp.4 Write any C++ programs to demonstrate multiple inheritance concept of an object oriented programming.  (Aim:- The main aim of this experiment is reusability of code and getting idea about classifying objects , identifying
Is Java a pure object oriented language?
programming language but not purely a object oriented language. In OOPs programming... through the class and object creation. For more object oriented programming language...Is Java a pure object oriented language?   Hi, Is Java a pure
java is pure object oriented
java is pure object oriented  java is pure object oriented or not.? reason.?   Java is not pure object oriented language because... are not object 2)It does not support operator overloading multiple inheritance. 3
Object Oriented concepts
OOP stands for Object Oriented Programming. This is a technique used to develop programs revolving around the real world entities. In OOPs programming... on the following links Object Oriented concepts
java : object oriented
java : object oriented   (a) Write a class named CarRental... the user for the data needed for a rental and creates an object of the correct... an object of the correct type. Display the total rental fee
Object oriented program - Java Beginners
Object oriented program  Write a class called RaceCar.java that contains instance variables horsepower, weight, zeroTo60, and milesPerGal. The value of zeroTo60 (in second) is determined by the formula zeroTo60 = weight
object oriented program.. - Java Beginners
object oriented program..  Write a class called RaceCar.java that contains instance variables horsepower, weight, zeroTo60, and milesPerGal. The value of zeroTo60 (in second) is determined by the formula zeroTo60 = weight
fully object oriented language - Java Beginners
fully object oriented language  Is java is a fully object oriented language?if no,why?  Hi Friend, Java is not a fully object oriented... int,float which are not object 2)It does not support operator overloading
About Java Programming Language
About Java Programming Language       Java is an Object oriented application programming language developed by Sun Microsystems. Java is a very powerful general-purpose programming
Learning Java Programming for Beginners
Java is an Object Oriented Programming Language that was developed by Sun Microsystems. It is based on C, C++ programming language but a tad better... are eyeing the vast field of programming and software development
Object oriented design - Java. - Design concepts & design patterns
Object oriented design - Java.  Hi, Everyone.Pls help me to develope my project of Object oriented design, as I have to submit it on thursday,3rd Dec. 2009.Nowadayz I am suffering from fever and not able to concentrate
OOP
; Object Oriented Programming which was totally based on the real life entities... for Object oriented  Programming. Previously we used to follow the procedural programming paradigm while developing the software which makes it hard to add
Java Object
Java Object         Object is the basic entity of object oriented programming language. Object.../java/master-java/java-object-oriented-language.shtml  
Learn Java Programming
you proficient in the language. Java is an Object Oriented Programming(OOP... in it, Learn Java programming online with tutorials and simple examples... and mobile phones. Career in Java programming is vast and that is why most
core java code in object oriented manner - Java Interview Questions
core java code in object oriented manner   hi this is komali .i want small code for this question .its very urgent .please send me as soon as possible . i am waiting for code Sports Associations in India
Java7 : OOPs Concepts
JAVA7 : OOPs Concept In this section we will discuss concept of Object oriented programming. Object Oriented Programming : Object Oriented Programming, better termed as OOPs is a paradigm where everything is represented as an object
Inheritance in java with example
Inheritance in java with example          Inheritance is one of the concept of the Object- Oriented programming. The advantage of using the inheritance
Java Training and Tutorials, Core Java Training
Java is a powerful object-oriented programming language with simple code... interfaces because Java has built-in application programming interface (API) and due... errorless programming with platform independent feature. 
Basic Java programming for Beginners
Basic Java programming for Beginners helps them to learn the fundamentals of the language easily and quickly. Java is an Object Oriented Programming language... programmers who want to enter in the programming field. According to an estimate
Method
; In this section, we will explore the concept of method in the reference of object oriented... of method in java object-oriented technique first one is the Instance method...-oriented programming technique. It provide the facility to redefine the inherit
Wicket
Wicket       Wicket is a mixed mode Java framework with built in support for Ajax, Just Java' object oriented programming Read full DescriptionADS_TO_REPLACE_1
OOPs and Its Concepts in Java
certain things common. In object oriented programming classes can inherit some...;    Brief Introduction to OOP Object Oriented.... Java is a object oriented programming  and to understand
JavaScript Object Oriented Feature
; JavaScript supports the main principles of object-oriented programming... supported for object- oriented programming .      Example... Programming The Object Oriented programming is a computer programming paradigm. Object
Object-Oriented Language: Java / APIs, Java OOPs
. Java is one of the useful Object Oriented programming language. Other Object..., Lasso, Perl 5,PHP5, VBScript, VBA etc. Java is popular object oriented programming...Java OOPs In this section we will learn Object Oriented (OOPs) Concepts 
Method Overriding
Method Overriding       Overriding is another useful feature of object-oriented programming technique. It provide the facility to redefine the inherit method of the super class
Introduction to Java
Java is an open source object oriented programming language..., Mike Sheridan under James Goslings decided to develop a programming language that is better than C and C++. They thought that the programming language must
Learn Java - Learn Java Quickly
;    Java is an object oriented programming language... useful than other object oriented languages. It is now most demanded programming skill used for developing various web-based application in e-commerce
Method in Java
; In this section, we will explore the concept of method in the reference of object oriented programming techniques. As we earlier described in the topic class... in a class, object can't do anything without method. Some programming languages use
Java as an Object Oriented Language
applications and programs. OOP stands for Object Oriented Programming.... There are four main pillars of an Object Oriented Programming Language... is the basic entity of object oriented programming language. Class itself does nothing
JSDAI
JSDAI       JSDAI? is an Application Programming Interface (API) for reading, writing and runtime manipulation of object oriented data defined by an EXPRESS based data model
Java as a general purpose language
;    Java is an Object oriented application programming language... programming language. It is a stupendous programming language which is not confined... of applications can be written in Java programming language such as any small
Annotation
Annotation       Annotation is one more powerful feature of Java, an object-oriented programming language included in JDK 1.5. Annotations were introduced in September 2004
How to use Java?
Java, an Object Oriented Programming language was developed by Sun... and computing devices. Java has been based on C and C++ programming language... browser. They are used in the programming of instant messaging, chat service
Class
; This section explores the concept of a class in reference to object oriented programming... to control an object's behavior. In terms of object-oriented programming, the class... to control an object's behavior. In terms of object-oriented programming, a class
Java hello world
; Java is a high-level object-oriented programming language developed... for every programming language learner. Writing "Hello World" program... for compiling and running the program. Java is a case sensitive programming language so
Master Java In A Week
as a programming language Java is an Object oriented application programming language... programming language. Java as an Object Oriented Language... are in pure C code, not C++. The function prototypes are in an object-oriented
What is Java?
; Java is a high-level object-oriented programming language developed by the Sun... application, web services and a platform independent programming language in the 1990s. Earlier, C++ was widely used to write object oriented programming
Programming
Programming  Given a number n, write a programming to determine its square root if it is possible, in the contraly case print an appropriate massege on the screen

Ads