Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Describe what an Interface is and how it?s different from a
Class.

Answers were Sorted based on User's Feedback



Describe what an Interface is and how it?s different from a Class...

Answer / mouli

In Interface,we cannot specify any definition inside but
where as class we can.

Is This Answer Correct ?    20 Yes 2 No

Describe what an Interface is and how it?s different from a Class...

Answer / kalaivani

interface is define as the declaration part of the function.
interface is differ from the class by class can access the
interface but interface cannot access the class

Is This Answer Correct ?    11 Yes 2 No

Describe what an Interface is and how it?s different from a Class...

Answer / nick martin

"interface is collection of abstract method."

Ummm No... Perhaps you are thinking of an abstract class and
methods within.

An interface defines a class. A class that implements an
interface must implement all of the methods and properties
within the interface. Interfaces are commonly thought of as
a "Contract" as they guarantee that implementing class will
contain those methods and properties.

Is This Answer Correct ?    10 Yes 1 No

Describe what an Interface is and how it?s different from a Class...

Answer / nishikant sahu

Class can hold both member function and data, depending upon
the member function class becomes abstract class and etc.
but if a class contain only pure virtual function then it
becomes "Interface",remember all functions should be pure
having no data member.

Is This Answer Correct ?    6 Yes 2 No

Describe what an Interface is and how it?s different from a Class...

Answer / amit upadhyay

interface is collection of abstract method.we can not
define any method in interface.we can implement that
abstract method by using the class.there is a restriction
in interface that you have to implement all the abstract
method in the class which is declared in interface.and we
can not create an object of interface.if we want to execute
the interface method then we have to implement first that
interface in any class after that create the object of
class ,then we can access execute that method


but in class we have to define the methods, which is
declered.we can also access that method through the object
of the class.

Is This Answer Correct ?    9 Yes 5 No

Describe what an Interface is and how it?s different from a Class...

Answer / priaynk

Interface is an idea about the functionalities provided.
class will define the rules for that idea
object is the real entity which takes it into reality.

Is This Answer Correct ?    4 Yes 1 No

Describe what an Interface is and how it?s different from a Class...

Answer / seamus barrett

An interface represents a contract between a class and its clients (the classes and functionality that consume the class). A class that implements an interface makes available to it's clients a collection of methods and properties as defined by the interface. As a class evolves (as the code changes) the contract between class and its client remains intact so long as the interface is unchanged. This allows a class to grow without requiring its clients to be rebuilt.

Difference? A class can be instantiated into an object that provides functionality to the instantiating function while an interface cannot be instantiated.

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More OOPS Interview Questions

Prepare me a program for the animation of train

0 Answers  


What is encapsulation selenium?

0 Answers  


DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED PROGRAMING.

5 Answers  


what is an instance of a class

5 Answers  


hi all..i want to know oops concepts clearly can any1 explain??

0 Answers   Eureka Forbes,


When is a memory allocated to a class?

11 Answers  


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

0 Answers   UBS,


What is encapsulation process?

0 Answers  


What does and I oop mean?

0 Answers  


string is a class or data type in java?

3 Answers  


Can you inherit a private class?

0 Answers  


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


Categories