answersLogoWhite

0

For an institution or even an individual, the cost would be whatever the ISP charges to connect using that address.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Class hierarchy is a fundamental concept of object oriented programs explain what this term means with reference to inheritance abstraction and instantiation?

Class hierarchy is a term used in Java. It is used for identifying the inheritance hierarchy or the parent class relationships Ex: Public class B extends C { } Public class A extends B { } Here if we take the class hierarchy for class 'A' it would be A


What is the difference between the direct and indirect base class?

Direct base classes are those that are specified in a derived class' inheritance declaration. Indirect base classes are those that are inherited via the direct base classes. class A{}; class B : public A{}; class C : public B{}; With respect to C, B is direct while A is indirect. With respect to B, A is direct.


Simple hierarchical inheritance program in java?

Multilevel inheritance is a java feature where the properties of a class are inherited by a class which extends one or more classes which extend its features...Example:public class A {public String getName(){return "Rocky";}}public class B extends A {public int getAge() {return 24;}}public class C extends B {public String getAddress(){return "North Carolina, USA";}}public class D extends C {public void print {System.out.println(getName());System.out.println(getAge());System.out.println(getAddress());}}This method would print the following in the console:Rocky24North Carolina, USAHere in class D you are calling methods that are available inside classes A, B & C. Though D extends only class C, it would in turn inherit the properties of the classes extended by C and its parents.This is multi level inheritance.


What is the valid class declaration header for the derived class d with base classes b1 and b2 A class d public b1 public b2 B class d class b1 class b2 C class d public b1 b2 D class d b1 b2?

What is the valid class declaration header for the derived class d with base classes b1 and b2?A. class d : public b1, public b2 {/*...*/};B. class d : class b1, class b2 {/*...*/};C. class d : public b1, b2 {/*...*/};D. class d : b1, b2 {/*...*/};The answer is A, C and D.B is not valid because "class" is not a valid access specifier.All the others are valid because private access is the default when the access specifier is omitted. Note that if class D were declared using the struct prefix, inheritance would default to public access rather than private.


Write program java explain use abstract class multilevel inheritance?

Multilevel inheritance is a java feature where the properties of a class are inherited by a class which extends one or more classes which extend its features...Example:public class A {public String getName(){return "Vijay";}}public class B extends A {public int getAge() {return 24;}}public class C extends B {public String getAddress(){return "Utter Pradesh,INDIA";}}public class D extends C {public void print {System.out.println(getName());System.out.println(getAge());System.out.println(getAddress());}}This method would print the following in the console:Vijay24Pradesh,INDIAHere in class D you are calling methods that are available inside classes A, B & C. Though D extends only class C, it would in turn inherit the properties of the classes extended by C and its parents.This is multi level inheritance.