You are on page 1of 2

q-18,pg-580, q-22

q-33 wording

---------
q-41-pg-615, trap is that it asks for complete robot not an incomplete and as al
l robot work independently we have to remove those no
0f items crossponding to each robot.
===============================
1. to check table in web page.. tr and td(tr for row in html and td for data in
row)
interface have method but do not have bodies.
make package-> then make interface in tht package.
interface needs classes to implement methods.
then make class seperately and use keyword "implements interfacename" to use tho
se items in those classes
@overide isused to impl them, by default interfaces are public ..
*****- to cleate object inside class(t call method in class we need object)
class_name object_name= new class_name();
to call method after object creation
-> objectname.emethod
===
getting user input in java-
we have to import scanner function in java
scanner objectname=new scanner(system.in)// this help us to use scanner i/p prov
ision
e.g-
double sum
sop("enter first num:")
sum=objectname.nextdouble();
to inherit another class in same package
let parent class id mom and child class is son
public class son extends mom{
----
constructor allows u to access as soon as u create object, same as method we use
it
so instead of using a blank return type we can instantly pass parameter to use t
hat
to use constructor create a method in that class(same name as class)

You might also like