answersLogoWhite

0

pen/pencil book

paper air plane

spiltball

food

User Avatar

Wiki User

∙ 15y ago
User Avatar

What else can I help you with?

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?

Friend functions are required whenever you have a function that cannot logically be declared a member of the class, but that still requires private access to the class members. In most cases, private access (and therefore protected access) to the class members would be undesirable in an external function; members are declared private or protected for a reason. However, if the class interface is such that the external function cannot fulfil its role and the interface cannot be modified because it would undermine the encapsulation, then the class may declare the function to be a friend.The function itself has no access to the implicit thispointer, thus it must accept an instance of the class by reference (where an instance is guaranteed to exist for every call) or by pointer (if an instance may or may not exist). The function can then indirectly access the private members of the class via the reference or non-NULL pointer.Friends functions are often employed whenever two (or more) classes must work closely together in such a way that an operation upon any one instance of a class must automatically invoke private or protected operations upon one or more of the others. For instance, in a parent/child structure, the parent often contains a private embedded list of its children while each child contains an embedded read-only pointer to its parent. Thus when adding a child to a parent, it would be desirable for the parent::add_child(child&) method to automatically modify the private child::m_parent member of the given child. Therefore the parent::add_child() method should be declared a friend of the child class.


What is the answer of in which class do you read?

The answer to the question "In which class do you read?" typically depends on the educational context of the person being asked. For example, a student might respond with the specific grade or level they are in, such as "I read in fifth grade" or "I read in my literature class." If the person is in college, they might specify a course title, like "I read in my English 101 class."


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.

Related Questions

Why do parents abuse there child?

because the child might be being naughty or silly.


What is the simile for naughty?

A common simile for "naughty" is "as mischievous as a cat." This comparison highlights playful or troublesome behavior, often implying a sense of fun or mischief. Other examples might include "as cheeky as a monkey" or "as unruly as a wild child," emphasizing the playful yet troublesome nature of being naughty.


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.


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

act up steal something break something curse


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


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