Question
What is a method?

Answers

A method is a function on some object x that you normally call as x.name(arguments...). Methods are defined as functions inside the class definition:
class C:
def meth (self, arg):
return arg*2 + self.attribute   Your Comment




More computer science engineering Questions..
To what does message protocol refer?

What is operator overloading?

Explain the isa and hasa class relationships. How would you implement each in a class design?

What is polymorphism?

When should you use multiple inheritance?

What is the difference between c and c++ ? would you prefer to use one over the other ?

How is memory allocated/deallocated in c ? how about c++ ?

What do the keyword static and const signify?

What are the differences between a c++ struct and c++ class?

Compare and contrast c and c++.?

What are class variables?

What are instance variables?

What is uml?

How does throwing and catching exceptions differ from using setjmp and longjmp?

In c++ what is a constructor? a destructor?

When is a template a better solution than a base class?

What is the difference between a shallow copy and a deep copy?

What is a super-class?

What is your reaction to this line of code?

What is an instance?



Search
Can you Answer!!
  • Q How will you develop relationships with vendors in a new city?
  • Q What is map message?
  • Q What is the process of Esculin hydrolysis ?
  • Q Dinesh is seated 7 from the left and satish is seated 12 from the right. when they interchange their positions, dinesh is seated 22nd from the left. How many people are there?
  • Q Tell me how do you ensure success when working with a chef and/or a kitchen manager?
  • Q Which Sultan Dynasty was the longest reigned :
  • Q When to use a sax parser?
  • Q What is dirac delta function and its fourier transform and its importance?
  • Q Which cics service transaction is used to gain accessibility to cics control tables? mention the one that has the highest priority.?
  • Q What is the serialization?
  • Q What is clean method?