answersLogoWhite

0


Best Answer

polymorphism

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What do you use if you want to ensure that all methods and properties are implemented?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why might you want to define an abstract class?

You would use an abstract class when you want a number of classes to have a similar functionality/methods list. The abstract class will have only method declarations and no definitions. So any class that extends this abstract class would have to provide the method definitions. This way you can ensure that all these classes will have a similar set of methods/features. This type of usage of an abstract class is similar to interfaces.


What is need for static method?

Static methods are methods that can be invoked without creating an instance of the class that contains them. They are needed in cases where the programmer would not want to create multiple instances of a class to execute a method.


What is the difference between temporary contraceptive methods and permanent contraceptive methods?

Temporary are methods like the a condom, the pill, the patch, or the ring. Things like that at which you can stop using at any time to try to become pregnant. Permanent methods are like a visectomy or getting your tubes tied. Things that will last for the rest of your life if you decide you never want a baby.


What is the benefit of using encapsulation?

The ability to make changes in your code without breaking the code of all others who use your code is a key benefit of encapsulation. You should always hide implementation details. To elaborate, you must always have your variables as private and then have a set of public methods that others can use to access your variables. Since the methods are public anyone can access them, but since they are in your class you can ensure that the code works the way that is best for you. So in a situation that you want to alter your code, all you have to do is modify your methods. No one gets hurt because i am just using your method names in my code and the code inside your method doesnt bother me much.


When to Use Encapsulation?

The ability to make changes in your code without breaking the code of all others who use your code is a key benefit of encapsulation. You should always hide implementation details. To elaborate, you must always have your variables as private and then have a set of public methods that others can use to access your variables. Since the methods are public anyone can access them, but since they are in your class you can ensure that the code works the way that is best for you. So in a situation that you want to alter your code, all you have to do is modify your methods. No one gets hurt because i am just using your method names in my code and the code inside your method doesnt bother me much.

Related questions

Give two reasons why it is important to determine tax residency status for a taxpayer?

One reason it is important to determine tax residency status is to ensure the person pays the appropriate amount of taxes. The next reason you want to determine the residency status is to ensure that you can assess the values based on properties surrounding their properties.


Why we want to know mechanical properties of materials?

To ensure that the materials are appropriate for objects that are made out of them. You do not make electricity cables out of ordinary glass or fibre-optic cables out of wood!


Do hair commercials use computer generated hair?

They use a variety of methods to ensure that their models look the best they can so you want to buy their product. One of those methods is computer touch-up which is not exactly the same as fully computer generated, but is still not all natural.


What methods can be implemented in business transformation?

"In business transformation, you can use the method of networking. Making sure that you are ""in"" with a bunch of different types of people will help you with your job and make it easier to expand. And, if you want to transform your occupation into something else, you will have that network of people there to support you."


What properties are desirable?

The properties that are desirable in a computer will depend on what you need it for. If you want it to play games, you will want a good video and audio card.


How can family planning be implemented?

please i want to know if family planning helps a family or damages it


Where are all the properties in a diamond found?

All the properties are, of course, found in a diamond. If you want to read more about the descriptions of the properties, you can read more, below.


What did president John Adams want implemented in order to protect the country from immigrants?

The Alien and Sedition Acts


Want to know for what ranid 150mg is prescribed?

properties


How do you convert properties of fractions?

The answer depends on what you want to convert them to.


Why might you want to define an abstract class?

You would use an abstract class when you want a number of classes to have a similar functionality/methods list. The abstract class will have only method declarations and no definitions. So any class that extends this abstract class would have to provide the method definitions. This way you can ensure that all these classes will have a similar set of methods/features. This type of usage of an abstract class is similar to interfaces.


What are the properties of the different types of angles?

if you want this answered then what grade are you in?