Question about Microsoft Computers & Internet

1 Answer

I need examples about c programing using classes

Posted by on

Ad

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Contributor
  • 27 Answers

U can get it from book Dietel n Dietel C++ programming

Posted on Aug 13, 2010

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

What is a friend function? anyone plase explain me this. what is it.


Using the keyword friend on a function declaration in class A permits declaring a function outside of the class, which is able to access private and protected members of class A.

A friend class, is a relationship where another class B is given access to the private and protected members of class A.

A few good examples are given in the following article:

Friendship and inheritance

Cheers!

Apr 13, 2016 | Sun Java Programming Language (cdj-275)

Tip

How to figure out your default subnet mask


A subnet mask is a 32-bit binary number, very similar to an IP address. And like an IP address, the subnet mask is usually expressed as a set of four octets written in decimal form, with each octet separated by a period.

The subnet mask is used by routers and switches to determine which part of a computer or other device's IP address is the network identifier, and which part is the host identifier. There are three default subnet masks, one for each of the IP classes A, B, or C. The default subnet masks are:

Class A = 255.0.0.0
Class B = 255.255.0.0
Class C = 255.255.255.0

To determine the default subnet mask for your network, all you need to do is see which class your network falls into. A network's class is assigned based on the first octet (the set of digits before the first period) of the IP address. For example, to find out which class the network 123.22.8.0 belongs to, you would see where "123" fits into the following table:

First Octet: Class:
1-126 = Class A
128-191 = Class B
192-223 = Class C

So for the example above, 123.22.8.0 is a Class A network, which means it would have a default subnet mask of 255.0.0.0.

Most home and office networks will be Class C networks, so your default subnet mask will typically be (you guessed it) 255.255.255.0. Not all networks use the default subnets, but for those that do, figuring it out is easy once you know which class your network fits into.

on Jun 23, 2010 | Computers & Internet

1 Answer

What is difference between a class and an object with respect to Java?


This kind of question is a test of your knowledge of the terminology associated with object oriented programming. You should note that this question could just as well be asked in the context of a C++ programmer interview, or any programming position that requires object oriented programming for that matter.
The terms 'class' and 'object' are definitely related to one another, but each term holds its own distinct meaning. Let's start out by explaining what the term "class" means in the context of OOP. The term 'class' refers to the actual written piece of code which is used to define the behavior of any given class. So, a class is a static piece of code that consists of attributes which don't change during the execution of a program - like the method definitions within a class.
An object is an instance of a class The term 'object', however, refers to an actual instance of a class. Every object must belong to a class. Objects are created and eventually destroyed - so they only live in the program for a limited time. While objects are 'living' their properties may also be changed signficantly.
An example will help clarify what we've said. Suppose we have a class called 'Animal'. All Animals have bodies and brains - and these could be the attributes of our fictional Animal class. We can also add some methods that would be common to all Animals - like "movement", because all animals can move (maybe you can think of a better example for methods, but hopefully you get the point). So, the idea you really want to enforce in your own mind is that this very general 'template' of an Animal does not change - it's simply just some lines of code that define the Animal class.
An instance of the Animal class would be a specific animal - like a lion, a cat, or a zebra. These instances of the Animal class would be called objects. Whereas the Animal class is a general concept, the instances of that class - the lions, cats, etc - take that general concept and create a real instance of it. That is why programmers define constructors for their classes - so that when someone wants to create an object of the class, he/she can just pass in the actual properties that he/she wants the object to have - like what kind of animal it is, the name, the weight, etc. So, you can think of a constructor as something that brings the class to life - which is why it is called a constructor, because it constructs a specific instance of a class.
Objects have a lifespan but classes do not And, as our Animal example clearly shows, every object has a lifespan associated with it - a cat or zebra can not live forever. And, the properties of those objects can change as well while they 'live'; if we have a 'size' variable defined in the class that would of course change as the cat object grows bigger.
Object versus class summary So, we can say that whereas a class is a general concept (like an Animal), an object is a very specific embodiment of that class, with a limited lifespan (like a lion, cat, or a zebra). Another way of thinking about the difference between a class and an object is that a class provides a template for something more specific that the programmer has to define, which he/she will do when creating an object of that class.
Objects have a lifespan but classes do not And, as our Animal example clearly shows, every object has a lifespan associated with it - a cat or zebra can not live forever. And, the properties of those objects can change as well while they 'live'; if we have a 'size' variable defined in the class that would of course change as the cat object grows bigger.
Object versus class summary So, we can say that whereas a class is a general concept (like an Animal), an object is a very specific embodiment of that class, with a limited lifespan (like a lion, cat, or a zebra). Another way of thinking about the difference between a class and an object is that a class provides a template for something more specific that the programmer has to define, which he/she will do when creating an object of that class.

Jul 16, 2014 | Computers & Internet

1 Answer

Example of report about java programing?


Have a look at http://www.object-refinery.com/jfreereport/ this it has the documentation for the class files as well. You can use these class files for easy generation of reports they are free to use.
Hope this helps
Best regards NextDoorNerd

Jul 28, 2010 | Sun Computers & Internet

1 Answer

Differentiate between nested and inner classes.Explain with examole


best shot that can attempt, hope it helps

Nested Classes vs. Inner Classes
A nested class is a class whose definition appears inside the definition of another class, as if it were a member of the other class. For example, if a program contains class A { class B { // fields, methods of class B... } // fields, methods of class A... } then class B is a nested class of class A. Code outside of the methods of class A can refer to class B by calling it A.B, using the same dot notation as for field and method references. Within the methods of class A class B can be used without qualifying the name. B could be hidden from code outside of class A by declaring it private, just as with fields and methods.
A nested class like B is known as an inner class. An inner class has access to the fields of an instance of its enclosing class. For this reason, an instance of B can only be created in association with an instance of A, using the expression /it instanceA.new A.B(...) outside of A's methods, where instanceA is an instance of A, and
new B(...) inside of A's methods. The new instance of B also knows about the enclosing instance of A, and can refer to it using the expression
A.this We can think of an instance of an inner class as having two this pointers, one for itself and one for its enclosing instance. An inner class may be nested within another inner class, so an inner class can even have multiple levels of this pointers. A nesting depth more than one level is quite uncommon, however, and should usually be avoided.
A nested class can be declared static, in which case it has reduced access to its enclosing class. For example, if B were declared static above, it could no longer access the instance variables of A, and there would be no associated instance A.this. Static nested classes are known as nested top-level classes, because they are exactly like classes declared outside any other class, except for the way they are named. Instances of a static nested class are created using regular new, as in new A.B(...)

Jun 09, 2010 | Sun Java Programming Language (cdj-275)

1 Answer

What does Dim, Try , Me , Private Sub means in Visual Basic


Dim allows you to declare a variable. It is short for "Dimension", and is an old old keyword. For example if you want to declare a variable called i that can hold an integer you would write:
Dim i As Integer
The Try keyword is used to allow you catch errors when they occur. If you didn't catch them, they would cause the program to end with an error report.
Try ' Code goes in here that might throw an error Catch Ex As Exception ' Code goes here to deal with any error End Try
The Me keyword refers to the current instance of the class in which the word appears. For example if the class is called Form1, then Me allows you to refer to the current instance of the class when the code is running.
Private Sub is formed from two Keywords. Private is an "Access modifier". When applied to a Sub it means that the Sub would not be visible outside the class. Sub is short for "Subroutine". A subroutine is a section of code that performs some useful function that you might want to run many times. For example you might want to do something whenever a button is clicked, and so you would write a subroutine with code in that will run whenever the button is clicked.
It would be better to ask programming questions in a visual basic forum. There are many on the internet. Search the internet for "visual basic forum". Also note that when you are using Visual Studio 2005, you can press the F1 key when you have placed the cursor in a word that you do not understand, and it will open the help and the relevant page.
These terms are very very difficult to understand when you have never programmed before. Usually it is best to take a lot of it on faith, and move on through the book or example that you are following without completely understanding it all. Over time, with practice, repetition and perseverance you will start to develop an understanding of the underlying concepts. They are hard to explain and hard to learn.

Jun 06, 2010 | Microsoft Visual Studio 2005 Standard...

1 Answer

I have an assignment which want me to use OOP to finish: a classical old game Pacman.


as an example what you could do is create a parent class named character that contains the location and controls. Then extend that with your specific characters' classes.

I hope this helps.

May 19, 2010 | Computers & Internet

3 Answers

How i can pause and continue a timer in visual c# i am making a stopwatch ........ pleas help


I would suggest you use the stopwatch class! Here is a nice example.

If this helped please help me and vote kindly!

Jun 12, 2009 | Microsoft ASP.NET Programming with MS...

1 Answer

In cpp programming why do we go for abstract base class?


Virtual keyword allows the program to dynamically decide which function to call. That is, when derived class is inherited from a base class the function in derived class can perform a completely different action from the one in Base class. Hence the function call via a pointer or reference maps to different functions based on the type of the object.

Abstract base class is used, so that anyone who is inherting from this class should implement that interface. Because the base class may not have a meaningful implementation for that interface. For example to design a program for computing area of different shapes like rectangle, triangle, hexagon etc. base class can be thought of as Shape. In addition the base class can be made abstract by declaring Area to be a pure virtual function. Then the different shapes like Rectangle, Triangle classes can inherit from Shape and implement Area interface based on their formulae.

Apr 06, 2009 | Microsoft Computers & Internet

1 Answer

How to search strings in visual basic 6.0


example:
Dim SearchWithinThis As String = "ABCDEFGHIJKLMNOP" Dim SearchForThis As String = "DEF" Dim FirstCharacter As Integer = SearchWithinThis.IndexOf(SearchForThis)

Mar 11, 2009 | Microsoft Visual Basic 6.0 for PC

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

22 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2774 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18394 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...