answersLogoWhite

0


Best Answer

pen/pencil book

paper air plane

spiltball

food

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Name something a naughty child might throw in a class?
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.


Need of friend function in c plus plus?

Declaring a function to be a friend of a class allows the friend function to gain private (and protected) access to that class, just as it would if it were declared a static member function of the class. Most of the time you will want to use static functions rather than friend functions, but sometimes it is necessary for a member method of another class or an external function to be permitted private access. Although some will tell you this undermines the encapsulation of the class, it does not. If anything, it reinforces that encapsulation, by only allowing the specified function to gain private access. Although the friend function is not physically a member of the class, it automatically becomes tightly bound to the class. That is not necessarily a bad thing when you're only dealing with a limited number of friends, but a class that has many friends can often be an indication of poor class design. Thus it is important to limit friendship and to only use it when it is absolutely required, whenever possible. By way of an example, suppose you have designed a parent and child class. Even without friend functions, the two are implicitly bound to each other: the parent object is a container for child objects, while child objects refer to their parents. All work is delegated and coordinated between the two classes accordingly; they work together as one. Most of the work can be encapsulated without the need to explicitly bind the classes together, however child objects typically refer to their parent object (via a member pointer) and might also be permitted to change their parent, but we wouldn't want to expose that pointer outside of the class, nor would we want to expose any mutators such as child::set_parent() outside of the class. But since the two classes are imlicitly bound to each other, we can declare specific methods of the parent class to be friends of the child class, such as parent::add_child(). In this way we can be sure that whenever we add a child to a parent, the parent not only attaches the child to itself, but also detaches the child from any existing parent beforehand. Far from undermining the encapsulation, this friendship reinforces it, assuring us that both classes are tightly bound.


What are the differences between class and abstract class?

Below is the main difference between the 3 components:Concrete class - Provides implementation for all its methods & also for methods from extended abstract classes or implemented interfacesAbstract class - Does not provide implementation for one or more of its methodsInterface - Does not provide implementation for any of its methods


Where is the load located in a class two lever?

Load is in the center, as in a wheel barrow or a bottle opener. Having an acronym might help remember which class is which. For example: 3-2-1 - ELF! means that for a class 3, the effort is in the middle; class 2, load in the middle; and class 1, fulcrum in the middle.


Is it necessary to implement all the methods of abstract classes in derived class?

An Abstract class is a way to organize inheritance, sometimes it makes no since to implement every method in a class (i.e. a predator class), it may implement some to pass to its children but some methods cannot be implemented without knowing what the class will do (i.e. eat() in a Tiger class). Therefore, abstract classes are templates for future specific classes. A disadvantage is that abstract classes cannot be instantiated, but most of the time it is logical not to create a object of an abstract class. heloooooo

Related questions

Why do parents abuse there child?

because the child might be being naughty or silly.


Can kids eat betwean class?

No because they might spill something...


In Pennsylvania can child protective services go to your 6 year old sons class and start asking him questions with out a parent present?

Only if they have probable cause such as if the the child has said something to his teacher that might even slightly suggest any sort of abuse.


A dream which has come to reality for a child?

A dream which has become a reality for a child might be a goal that the child has reached. A dream that is now a reality might also be something he or she got for Christmas or a birthday.


What are some of the social challenges a cloned child might face?

Some challenges a cloned child might have is something that the other child the clone came from might not have. For instance the human child might be smart but acts a fool all the time,but the cloned child might be the opposite. I also think that cloning children might give the cloned child some sort of disability. DON'T CLONE CHILDREN!!!!


Name something specific a child might hold his hand at a carnival?

Candyfloss


Where can a child design a car easily?

You might want to Google that, for your specific area. Your local high school might offer a class like that.


Why are kittens naughty?

they arent they might be hyper because they wanna play with their brother or sisters and when u leave because they will get sad but never naughty


What might a child do in the grocery store embarrasses their parents?

act up steal something break something curse


How does child abuse affect a child's mind?

Child abuse affects a way the child thinks and acts. If a child was abused, for example hit multiple times, every time someone raises a hand(for a high five or something) they might twitch or something. Their ideas, thoughts, and dreams might be affected. Bad dreams, terrible thoughts, and they might think abuse is okay and abuse other people.


What are your alternatives if your friend wants to copy your paper from last semester?

They will get the same grade that you did. They might like you use something from their old class if they had that class


What might a naughty child find in their stocking on Christmas morning?

A lump of coal or a note from Santa reminding them to be good next year.