OOP

OOP

View Answers

November 26, 2008 at 11:06 PM

Hi friend,

We check your code having some error and remember it :

1.In class AA having a constructor :

public int AA (int a, int b)
{

x= a;
y= b;
}
}

Constructor not having any return type and it replace with code :

public AA (int a, int b)
{

x= a;
y= b;
}
}

2.In class BB having a method :

public print()
{
System.out.println(one + " " +two);
}

In this method having no return type so replace the code with :

public void print()
{
System.out.println(one + " " +two);
}



For more information on Java visit to :

http://www.roseindia.net/java/

http://www.roseindia.net/java/beginners/Construct.shtml

Thanks









Related Tutorials/Questions & Answers:
oop concept
oop concept  why Object class is super class for all class? 1.to use the Object class methods in subclass directly or 2.the Object class is usefull at the time of object create of subclass what
oop
Advertisements
OOP
OOP - Java Beginners
OOP Design Pattern  What is the oops design patterns
php oop functions
php oop functions  Just a quick question... php oop functions. can i call the main class function from an instantiated object of the child class
Java with OOP assignment (Eclipse)
Java with OOP assignment (Eclipse)  How do i control the length of characters in an input? E.g.: Enter your name > Hi * Name too short
PHP OOP Concepts
PHP OOP Concepts Object Oriented Programming  is a paradigm which is nowadays the most popular way to develop any application and most of the modern day language is based on this paradigm. OOP or Object Oriented Programming PHP has
ModuleNotFoundError: No module named 'oop-ext'
ModuleNotFoundError: No module named 'oop-ext'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'oop-ext' How to remove the ModuleNotFoundError: No module named 'oop-ext
OOP JAVa - Java Interview Questions
OOP JAVa  Is java is 100% OOP.?Plz giv full explanation.  hi Sanjay,dis is Srinivas(MCA from Andhra University).....Java is not an 100 % OOPL,because of the availability of Primitive Data Types
what is the difference between pop and oop
what is the difference between pop and oop  what is the difference between pop and oop
oop answers - Java Beginners
oop answers  Consider the following declarations: { private int u; private double w; public XClass() { } public XClass(int a, double b) { } public void func() { } public void print() { } } XClass
OOP questions - Java Beginners
OOP questions  Consider the following declarations: { private int u; private double w; public XClass() { } public XClass(int a, double b) { } public void func() { } public void print
OOP - Java Beginners
OOP  i have problem with OOP hope u'll help me write a program that allows the user to enter student' names followed by their test scores and outputs the following information (assume that the maximum number of students
OOP questions - Java Beginners
OOP questions  Consider the following declarations: { private int u; private double w; public XClass() { } public XClass(int a, double b) { } public void func() { } public void print
OOP with Java - Java Beginners
OOP with Java  I had a look at the solution for the answers, in the website already, but my lecturer wants us to do it in another method. Here goes...) { Question2 q = new Question2(); q.buildSeats(); q.printSeats
ModuleNotFoundError: No module named 'distributions-practice-OOP'
ModuleNotFoundError: No module named 'distributions-practice-OOP'  Hi...: No module named 'distributions-practice-OOP' How to remove the ModuleNotFoundError: No module named 'distributions-practice-OOP' error? Thanks
ModuleNotFoundError: No module named 'distributions-practice-OOP'
ModuleNotFoundError: No module named 'distributions-practice-OOP'  Hi...: No module named 'distributions-practice-OOP' How to remove the ModuleNotFoundError: No module named 'distributions-practice-OOP' error? Thanks
ModuleNotFoundError: No module named 'distributions-practice-OOP'
ModuleNotFoundError: No module named 'distributions-practice-OOP'  Hi...: No module named 'distributions-practice-OOP' How to remove the ModuleNotFoundError: No module named 'distributions-practice-OOP' error? Thanks
ModuleNotFoundError: No module named 'DS-OOP-Review'
ModuleNotFoundError: No module named 'DS-OOP-Review'  Hi, My... 'DS-OOP-Review' How to remove the ModuleNotFoundError: No module named 'DS-OOP-Review' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'bottle-oop-rest'
ModuleNotFoundError: No module named 'bottle-oop-rest'  Hi, My... named 'bottle-oop-rest' How to remove the ModuleNotFoundError: No module named 'bottle-oop-rest' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'distributions-practice-OOP'
ModuleNotFoundError: No module named 'distributions-practice-OOP'  Hi...: No module named 'distributions-practice-OOP' How to remove the ModuleNotFoundError: No module named 'distributions-practice-OOP' error? Thanks
ModuleNotFoundError: No module named 'DS-OOP-Review'
ModuleNotFoundError: No module named 'DS-OOP-Review'  Hi, My... 'DS-OOP-Review' How to remove the ModuleNotFoundError: No module named 'DS-OOP-Review' error? Thanks   Hi, In your python
OOP with Java 2 - Java Beginners
OOP with Java 2  Define a class called BogEntry that could be used to store an entry for a Web log. The class should have member variables to store the poster's username, text of entry, and the date of the entry using the Date
OOP using Java - Java Beginners
OOP using Java  Can you write a Java statement that creates the object mysteryClock of the Clock type, and initialize the instance variables hr,min,and sec of mysteryClock to 7, 18, and 39, respectively. thank you!!! 
OOP Using JAVA - Java Beginners
OOP Using JAVA  OBJECT ORIENTED PROGRAMMING USING JAVA (hope guys u will help me please i need your help,thank you so much) Create a Java program for a class named Money that contains data members.This class is used
OOP with Java 3 - Java Beginners
OOP with Java 3  Write a Temperature class that has two instances variables: temperature value (a floating-point number) and a character for the scale, wither C for Celsius or F for Fahrenheit. the class should have four
OOP with Java-Array - Java Beginners
OOP with Java-Array  Write a program to assign passengers seats in an airplane. Assume a small airplane with seat numberings as follows: 1 A B C D 2 A B C D 3 A B C D 4 A B C D 5 A B C D 6 A B C D 7
registration form using oop concept
registration form using oop concept  I would like to write a program student registration form at kindergartens and display the information of students that register to the kindergarten. How to make the form and display
java oop
Helpin OOP
it.unibo.tuprolog - oop-lib-jvm version 0.31.10 Maven dependency. How to use oop-lib-jvm version 0.31.10 in pom.xml?
it.unibo.tuprolog  - Version 0.31.10 of oop-lib-jvm Maven dependency? How to use  it.unibo.tuprolog  - Version 0.31.10 of oop-lib-jvm in pom.xml? How to use oop-lib-jvm version 0.31.10 in pom.xml? Learn to use
PHP OOP Namespace
Namespace in PHP: The term namespace is very much common in OOP based language, basically it is a collection of classes, objects and functions. Namespaces.... The namespace should always declare on the top of the page. PHP OOP Namespace
Java with OOP assignment (Eclipse) - Java Beginners
Java with OOP assignment (Eclipse)  "THREE Ts GAME" *Description* A "tic-tac-toe" game is a two player's board game where the game board is made of 3 X 3 grids. The two players, one being assigned with 'O' and the other
it.unibo.tuprolog - oop-lib-jvm version 0.31.5-dev0m+0c07eb350 Maven dependency. How to use oop-lib-jvm version 0.31.5-dev0m+0c07eb350 in pom.xml?
it.unibo.tuprolog  - Version 0.31.5-dev0m+0c07eb350 of oop-lib-jvm Maven...+0c07eb350 of oop-lib-jvm in pom.xml? How to use oop-lib-jvm version 0.31.5-dev0m... it easy to use it.unibo.tuprolog  - Version 0.31.5-dev0m+0c07eb350 of oop
Maven Repository/Dependency: it.unibo.tuprolog | oop-lib-jvm
Maven Repository/Dependency of Group ID it.unibo.tuprolog and Artifact ID oop-lib-jvm. Latest version of it.unibo.tuprolog:oop-lib-jvm dependencies. # Version Release Date 1
OOP
OOP       OOPs stands for Object oriented  Programming. Previously we used to follow.../beginners/oop-in-java.shtmlADS_TO_REPLACE_1
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.16.0 is released. Learn to use oop-lib-jvm version 0.16.0 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.16.0 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.16.0.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.16.1 is released. Learn to use oop-lib-jvm version 0.16.1 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.16.1 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.16.1.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.17.0 is released. Learn to use oop-lib-jvm version 0.17.0 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.17.0 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.17.0.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.17.1 is released. Learn to use oop-lib-jvm version 0.17.1 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.17.1 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.17.1.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.17.2 is released. Learn to use oop-lib-jvm version 0.17.2 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.17.2 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.17.2.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.17.3 is released. Learn to use oop-lib-jvm version 0.17.3 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.17.3 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.17.3.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.17.4 is released. Learn to use oop-lib-jvm version 0.17.4 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.17.4 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.17.4.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.18.0 is released. Learn to use oop-lib-jvm version 0.18.0 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.18.0 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.18.0.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.18.1 is released. Learn to use oop-lib-jvm version 0.18.1 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.18.1 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.18.1.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.20.9 is released. Learn to use oop-lib-jvm version 0.20.9 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.20.9 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.20.9.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.30.4 is released. Learn to use oop-lib-jvm version 0.30.4 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.30.4 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.30.4.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.20.4 is released. Learn to use oop-lib-jvm version 0.20.4 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.20.4 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.20.4.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.20.3 is released. Learn to use oop-lib-jvm version 0.20.3 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.20.3 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.20.3.
Maven dependency for it.unibo.tuprolog - oop-lib-jvm version 0.30.2 is released. Learn to use oop-lib-jvm version 0.30.2 in Maven based Java projects
Maven dependency for  it.unibo.tuprolog  - Version 0.30.2 of oop-lib-jvm released The developers of   it.unibo.tuprolog - oop-lib-jvm..., the released version of  it.unibo.tuprolog - oop-lib-jvm library is 0.30.2.

Ads